From 43fd6fe7385285ebd85972f96298bf1990b78e04 Mon Sep 17 00:00:00 2001 From: Brad Hall Date: Thu, 26 Jan 2012 13:45:34 -0800 Subject: Remove fetching of networks that weren't created via nova-manage For bug 922319: we want to make sure we only return networks created by nova-manage and not any arbitrary network that Quantum could have for a given tenant. Change-Id: Icd4a9c00d0ed4faf5e404060e8b7a658d9b83257 --- nova/network/quantum/manager.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/nova/network/quantum/manager.py b/nova/network/quantum/manager.py index 4fc6f379e..55457d398 100644 --- a/nova/network/quantum/manager.py +++ b/nova/network/quantum/manager.py @@ -288,15 +288,6 @@ class QuantumManager(manager.FloatingIP, manager.FlatManager): net_proj_pairs = self.ipam.get_project_and_global_net_ids(context, project_id) - # Quantum may also know about networks that aren't in the networks - # table so we need to query Quanutm for any tenant networks and add - # them to net_proj_pairs. - qnets = self.q_conn.get_networks(project_id) - for qn in qnets['networks']: - pair = (qn['id'], project_id) - if pair not in net_proj_pairs: - net_proj_pairs.append(pair) - # Create a port via quantum and attach the vif for (quantum_net_id, project_id) in net_proj_pairs: # FIXME(danwent): We'd like to have the manager be -- cgit