diff options
| author | Brad Hall <brad@nicira.com> | 2011-12-11 19:56:39 +0000 |
|---|---|---|
| committer | Brad Hall <brad@nicira.com> | 2011-12-13 23:43:57 +0000 |
| commit | 5815efb158d8dc7f9f435ce96ab4f4caa599a640 (patch) | |
| tree | 3aba3ad2b06bec6aa4ca697f832e58a297d8b8ec /nova/tests | |
| parent | 67490c6b50174a89bce6719dd1b89fee8faa8ab2 (diff) | |
Pass additional information from nova to Quantum
Some of the Quantum plugins will require this information
Change-Id: I957b5546b8c16d44d587bd73da975a1bb4a0b630
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/test_quantum.py | 5 |
1 files 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)" |
