summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_router.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2018-05-29 10:53:55 -0600
committerspisarski <s.pisarski@cablelabs.com>2018-05-29 10:53:55 -0600
commitf17b5d4631682b4807dc1c4267da65258413ef73 (patch)
treefa4f5b2ae8b3ed3e5005467992bd7584783a3355 /snaps/openstack/create_router.py
parent5a81c2abb920cfe5ea975c37b390838d586a98b1 (diff)
Fixed issue when attempting to add an internal subnet to a router.
Internal subnets that are owned by the same user who is creating a router now can be added properly. Attempted to fix an issue with the change in https://gerrit.opnfv.org/gerrit/#/c/57853/ that was allowing for subnets with the same name to be assigned but ended up breaking this functionality completely. JIRA: SNAPS-312 Change-Id: I1687f66db47520e93e401d3e9fb5f0c4f45d460f Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/create_router.py')
-rw-r--r--snaps/openstack/create_router.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/snaps/openstack/create_router.py b/snaps/openstack/create_router.py
index 7a056e7..3269bbd 100644
--- a/snaps/openstack/create_router.py
+++ b/snaps/openstack/create_router.py
@@ -111,7 +111,7 @@ class OpenStackRouter(OpenStackNetworkObject):
self.__internal_router_interface = router_intf
else:
raise RouterCreationError(
- 'Subnet not found with name ' + internal_subnet.name)
+ 'Subnet not found with name {}'.format(sub_config))
for port_setting in self.router_settings.port_settings:
port = neutron_utils.get_port(