def teardownLink(self, connection_id, source_target, dest_target, bandwidth):
        service_url = self.ncs_services_url + '/bod/' + connection_id + '?' + NO_OUT_OF_SYNC_CHECK
        headers = self._createHeaders()

        def linkDown(_):
            log.msg('Link %s -> %s down' % (source_target, dest_target), system=self.log_system)

        def error(failure):
            log.msg('Error bringing down link %s -> %s' % (source_target, dest_target), system=self.log_system)
            log.msg('Message: %s' % _extractErrorMessage(failure), system=self.log_system)
            return failure

        d = httpclient.httpRequest(service_url, None, headers, method='DELETE', timeout=NCS_TIMEOUT)
        d.addCallbacks(linkDown, error)
        return d
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/backends/ncsvpn.py/NCSVPNConnectionManager.teardownLink/original