diff options
author | 2018-06-04 09:23:53 -0600 | |
---|---|---|
committer | 2018-06-04 15:26:42 +0000 | |
commit | ffafa2f92bc0806a5b274deca3c7fad59ee8d769 (patch) | |
tree | 19cc7a8d2173f92818269512ccb1b50e30a6e7ea | |
parent | 429b829fe4a745cdffd6c804a2a5e71d83cfbe0b (diff) |
Fix to a router's internal subnet resoulution.
Ensures that any subnet added to the router is available to that project.
Change-Id: Iddfad14a093551bc0f4a05c52b20f02db2474d78
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
-rw-r--r-- | snaps/openstack/utils/neutron_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/snaps/openstack/utils/neutron_utils.py b/snaps/openstack/utils/neutron_utils.py index ab56bbf..8b60c3b 100644 --- a/snaps/openstack/utils/neutron_utils.py +++ b/snaps/openstack/utils/neutron_utils.py @@ -269,7 +269,7 @@ def get_subnet_by_name(neutron, keystone, subnet_name, project_name=None): if project_name: project = keystone_utils.get_project_by_id( keystone, subnet.project_id) - if project: + if project.name == project_name: return subnet else: return subnet |