summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_router.py
diff options
context:
space:
mode:
Diffstat (limited to 'snaps/openstack/create_router.py')
-rw-r--r--snaps/openstack/create_router.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/snaps/openstack/create_router.py b/snaps/openstack/create_router.py
index 877e064..ef27fab 100644
--- a/snaps/openstack/create_router.py
+++ b/snaps/openstack/create_router.py
@@ -64,8 +64,8 @@ class OpenStackRouter:
logger.debug(
'Creating Router with name - ' + self.router_settings.name)
existing = False
- router_inst = neutron_utils.get_router_by_name(
- self.__neutron, self.router_settings.name)
+ router_inst = neutron_utils.get_router(
+ self.__neutron, router_settings=self.router_settings)
if router_inst:
self.__router = router_inst
existing = True