summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_router.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2017-11-02 12:03:42 -0600
committerspisarski <s.pisarski@cablelabs.com>2017-11-02 12:03:42 -0600
commit79accabe2003937edf8826cf565ef42a0056e9a4 (patch)
tree29aba44646e7a7d5683fb383432d533b9a690c4f /snaps/openstack/create_router.py
parentb20a368daa581e3f649ac5a772da31cd09fdb484 (diff)
Added method to OpenStackHeatStack to return OpenStackRouter objects.
Continuation of the story SNAPS-153 for adding creator/state machine instances for OpenStack objects deployed via Heat. JIRA: SNAPS-173 Change-Id: Iac9138ef7827c10db1637447d3a909e714a0301b Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/create_router.py')
-rw-r--r--snaps/openstack/create_router.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/snaps/openstack/create_router.py b/snaps/openstack/create_router.py
index 98e3e14..6da5f8e 100644
--- a/snaps/openstack/create_router.py
+++ b/snaps/openstack/create_router.py
@@ -132,6 +132,8 @@ class OpenStackRouter(OpenStackNetworkObject):
'Error creating port with name - '
+ port_setting.name)
+ self.__router = neutron_utils.get_router_by_id(
+ self._neutron, self.__router.id)
return self.__router
def clean(self):
@@ -206,8 +208,6 @@ class RouterSettings:
:param external_gateway: Name of the external network to which to route
:param admin_state_up: The administrative status of the router.
True = up / False = down (default True)
- :param external_fixed_ips: Dictionary containing the IP address
- parameters.
:param internal_subnets: List of subnet names to which to connect this
router for Floating IP purposes
:param port_settings: List of PortSettings objects
@@ -217,9 +217,8 @@ class RouterSettings:
self.project_name = kwargs.get('project_name')
self.external_gateway = kwargs.get('external_gateway')
- self.admin_state_up = kwargs.get('admin_state_up')
+ self.admin_state_up = kwargs.get('admin_state_up', True)
self.enable_snat = kwargs.get('enable_snat')
- self.external_fixed_ips = kwargs.get('external_fixed_ips')
if kwargs.get('internal_subnets'):
self.internal_subnets = kwargs['internal_subnets']
else: