Validate network MTU after initial read

This commit is contained in:
Joshua Boniface 2021-10-12 10:53:17 -04:00
parent 5f783f1663
commit cc309fc021
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ class VXNetworkInstance(object):
try: try:
self.vx_mtu = self.zkhandler.read(('network.mtu', self.vni)) self.vx_mtu = self.zkhandler.read(('network.mtu', self.vni))
self.validateNetworkMTU()
except Exception: except Exception:
self.vx_mtu = None self.vx_mtu = None
@ -133,6 +134,7 @@ class VXNetworkInstance(object):
try: try:
self.vx_mtu = self.zkhandler.read(('network.mtu', self.vni)) self.vx_mtu = self.zkhandler.read(('network.mtu', self.vni))
self.validateNetworkMTU()
except Exception: except Exception:
self.vx_mtu = None self.vx_mtu = None