Merge "Remove conditional on external_fixed_ips to allow for case that it is not...
authorSteven Pisarski <s.pisarski@cablelabs.com>
Thu, 24 May 2018 16:31:38 +0000 (16:31 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Thu, 24 May 2018 16:31:38 +0000 (16:31 +0000)
snaps/domain/network.py

index a028e2b..9f634aa 100644 (file)
@@ -186,8 +186,7 @@ class Router:
         self.port_subnets = kwargs.get('port_subnets')
 
         if (kwargs.get('external_gateway_info') and
-                isinstance(kwargs.get('external_gateway_info'), dict) and
-                kwargs.get('external_gateway_info').get('external_fixed_ips')):
+                isinstance(kwargs.get('external_gateway_info'), dict)):
             gateway_info = kwargs.get('external_gateway_info')
 
             self.external_network_id = gateway_info.get('network_id')