diff options
author | 2018-05-23 16:11:12 -0400 | |
---|---|---|
committer | 2018-07-03 19:49:27 +0000 | |
commit | 87cbb3f40576ee913a640acbf49d55e430648a73 (patch) | |
tree | 666bc66a2a43c37e930f191619ffd9720a4a1514 | |
parent | 7f8eee2885899f949eda99281818020301c3c841 (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>
(cherry picked from commit 26645b9602a5eb41a6ab066d51a08a4d67d08c62)
-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') |