summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Hall <brad@nicira.com>2012-01-26 13:45:34 -0800
committerBrad Hall <brad@nicira.com>2012-01-26 13:54:26 -0800
commit43fd6fe7385285ebd85972f96298bf1990b78e04 (patch)
treede3072c7dab8772be5cc4f779f9db71f235a360c
parente1802d8447a0299816a0f1ffa6fbaa6111591070 (diff)
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
-rw-r--r--nova/network/quantum/manager.py9
1 files changed, 0 insertions, 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