Make sure networks returned from get_instance_nw_info have a label

Change-Id: I3f1fd91cb05150bcbd5b32db1e8345b66d7fa348
This commit is contained in:
Brad Hall
2011-10-03 12:07:50 -07:00
parent c09248b68e
commit ec326a2f10

View File

@@ -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():