summaryrefslogtreecommitdiffstats
path: root/snaps/domain/network.py
diff options
context:
space:
mode:
Diffstat (limited to 'snaps/domain/network.py')
-rw-r--r--snaps/domain/network.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/snaps/domain/network.py b/snaps/domain/network.py
index a028e2b..3d5e4af 100644
--- a/snaps/domain/network.py
+++ b/snaps/domain/network.py
@@ -39,6 +39,7 @@ class Network:
self.external = kwargs.get('router:external', kwargs.get('external'))
self.type = kwargs.get('provider:network_type', kwargs.get('type'))
self.subnets = kwargs.get('subnets', list())
+ self.mtu = kwargs.get('mtu')
def __eq__(self, other):
return (self.name == other.name and self.id == other.id and
@@ -46,7 +47,8 @@ class Network:
self.admin_state_up == other.admin_state_up and
self.shared == other.shared and
self.external == other.external and
- self.subnets == other.subnets)
+ self.subnets == other.subnets and
+ self.mtu == other.mtu)
class Subnet:
@@ -186,8 +188,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')