summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2018-05-16 09:06:57 -0600
committerspisarski <s.pisarski@cablelabs.com>2018-05-16 09:06:57 -0600
commit021432b38b6e9de94e81590da2f1c9e7ea8b63ea (patch)
tree4262e0325c5cf75e488dc5d78d9b91e483550ffb
parent816a90ca79a0f16bd5176b00c33391f522e517c1 (diff)
Removed project query restriction when looking up network for port creation.
When creating a router to an external network, the port configuration object was performing a lookup using the port's user and project ID; however, as external networks created in other projects and are visible amongst all projects can also be added to a port. This patch removes the project restriction from the network query. I do not believe this fix should ultimately break other functionality as networks that cannot be looked up by a certain user would still return None raising a valid exception. JIRA: APEX-598 Change-Id: I6cd32373fd4f42d8ad9b63a89c2131f95b113ce8 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
-rw-r--r--snaps/config/network.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/snaps/config/network.py b/snaps/config/network.py
index eca8734..85a9fae 100644
--- a/snaps/config/network.py
+++ b/snaps/config/network.py
@@ -457,8 +457,7 @@ class PortConfig(object):
project_name = project_name
try:
network = neutron_utils.get_network(
- neutron, keystone, network_name=self.network_name,
- project_name=project_name)
+ neutron, keystone, network_name=self.network_name)
finally:
if session:
keystone_utils.close_session(session)