From 3f606b739f2e3eaea553251413be73e21e4b691d Mon Sep 17 00:00:00 2001 From: Brad Hall Date: Sun, 11 Dec 2011 19:56:39 +0000 Subject: [PATCH] Pass additional information from nova to Quantum Some of the Quantum plugins will require this information Change-Id: I957b5546b8c16d44d587bd73da975a1bb4a0b630 --- nova/tests/test_quantum.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nova/tests/test_quantum.py b/nova/tests/test_quantum.py index 37a3ea465..8e8a8511c 100644 --- a/nova/tests/test_quantum.py +++ b/nova/tests/test_quantum.py @@ -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)"