From: Stuart Mackie Date: Wed, 23 May 2018 20:11:12 +0000 (-0400) Subject: Remove conditional on external_fixed_ips to allow for case that X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F57785%2F1;p=snaps.git Remove conditional on external_fixed_ips to allow for case that it is not set but network_id is set in external_gateway_info Change-Id: Ib0fdfbf49730ca68d7c1d47c18c2ac17be637380 Signed-off-by: Stuart Mackie --- 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')