Ensure vx_mtu is always an int()

This commit is contained in:
Joshua Boniface 2021-10-09 18:52:50 -04:00
parent d2c18d7b46
commit e9d05aa24e
1 changed files with 2 additions and 0 deletions

View File

@ -94,6 +94,7 @@ class VXNetworkInstance(object):
)
self.vx_mtu = self.max_mtu
update_mtu = True
self.vx_mtu = int(self.vx_mtu)
# Ensure the MTU is valid
if self.vx_mtu > self.max_mtu:
self.logger.out(
@ -175,6 +176,7 @@ class VXNetworkInstance(object):
)
self.vx_mtu = self.max_mtu
update_mtu = True
self.vx_mtu = int(self.vx_mtu)
# Ensure the MTU is valid
if self.vx_mtu > self.max_mtu:
self.logger.out(