summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Pisarski <s.pisarski@cablelabs.com>2018-05-24 16:31:38 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-05-24 16:31:38 +0000
commitf5ff39bd0b32c5d3c31bc21cb1f560161c559894 (patch)
tree458744a08780eed793a7e43debc5ac823cab5a33
parentb6906661c0c853761a4d65a5980e6f4f24194217 (diff)
parent26645b9602a5eb41a6ab066d51a08a4d67d08c62 (diff)
Merge "Remove conditional on external_fixed_ips to allow for case that it is not set but network_id is set in external_gateway_info"
-rw-r--r--snaps/domain/network.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/snaps/domain/network.py b/snaps/domain/network.py
index a028e2b..9f634aa 100644
--- a/snaps/domain/network.py
+++ b/snaps/domain/network.py
@@ -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')