From 2592f5188f59a8afda6465ac49130a256bbfcbdf Mon Sep 17 00:00:00 2001 From: Brad Hall Date: Mon, 3 Oct 2011 12:07:50 -0700 Subject: [PATCH] Make sure networks returned from get_instance_nw_info have a label Change-Id: I3f1fd91cb05150bcbd5b32db1e8345b66d7fa348 --- nova/tests/test_quantum.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nova/tests/test_quantum.py b/nova/tests/test_quantum.py index 0feec9b9..e8f09f96 100644 --- a/nova/tests/test_quantum.py +++ b/nova/tests/test_quantum.py @@ -61,6 +61,9 @@ class FakeQuantumClientConnection(object): except KeyError: return False + def get_network_name(self, tenant_id, net_id): + return self.nets[net_id]['net-name'] + def _confirm_not_attached(self, interface_id): for n in self.nets.values(): for p in n['ports'].values():