diff options
author | Stuart Mackie <wsmackie@juniper.net> | 2018-05-23 16:11:12 -0400 |
---|---|---|
committer | Stuart Mackie <wsmackie@juniper.net> | 2018-05-23 16:11:12 -0400 |
commit | 26645b9602a5eb41a6ab066d51a08a4d67d08c62 (patch) | |
tree | 9596ac8abfde2f46d77ddc85895dd645af2bcf74 | |
parent | 399d3eddd132ed77af569d2532c47624cb7e1168 (diff) |
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 <wsmackie@juniper.net>
-rw-r--r-- | snaps/domain/network.py | 3 |
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') |