Pass additional information from nova to Quantum

Some of the Quantum plugins will require this information

Change-Id: I957b5546b8c16d44d587bd73da975a1bb4a0b630
This commit is contained in:
Brad Hall
2011-12-11 19:56:39 +00:00
parent 6db5aded93
commit 3f606b739f

View File

@@ -49,7 +49,7 @@ class FakeQuantumClientConnection(object):
net_ids.append(net_id)
return {'networks': net_ids}
def create_network(self, tenant_id, network_name):
def create_network(self, tenant_id, network_name, **kwargs):
uuid = str(utils.gen_uuid())
self.nets[uuid] = {'net-name': network_name,
@@ -77,7 +77,8 @@ class FakeQuantumClientConnection(object):
raise Exception(_("interface '%s' is already attached" %
interface_id))
def create_and_attach_port(self, tenant_id, net_id, interface_id):
def create_and_attach_port(self, tenant_id, net_id, interface_id,
**kwargs):
if not self.network_exists(tenant_id, net_id):
raise Exception(
_("network %(net_id)s does not exist for tenant %(tenant_id)"