def setupLink(self, connection_id, source_target, dest_target, bandwidth):
        service_url = self.ncs_services_url + '?' + NO_OUT_OF_SYNC_CHECK
        payload = createVPNPayload(connection_id, source_target, dest_target)
        headers = self._createHeaders()

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

        def error(failure):
            log.msg('Error bringing up 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, payload, headers, method='POST', timeout=NCS_TIMEOUT)
        d.addCallbacks(linkUp, error)
        return d
dataset/ETHPy150Open NORDUnet/opennsa/opennsa/backends/ncsvpn.py/NCSVPNConnectionManager.setupLink/original