def create_and_attach_port(self, tenant_id, net_id, interface_id):
        LOG.debug(_("Connecting interface %(interface_id)s to "
                    "net %(net_id)s for %(tenant_id)s" % locals()))
        port_data = {'port': {'state': 'ACTIVE'}}
        resdict = self.client.create_port(net_id, port_data, tenant=tenant_id)
        port_id = resdict["port"]["id"]

        attach_data = {'attachment': {'id': interface_id}}
        self.client.attach_resource(net_id, port_id, attach_data,
                                    tenant=tenant_id)
Creates a Quantum port on the specified network, sets
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/network/quantum/quantum_connection.py/QuantumClientConnection.create_and_attach_port