Ensure vx_mtu is always an int()
This commit is contained in:
parent
d2c18d7b46
commit
e9d05aa24e
|
@ -94,6 +94,7 @@ class VXNetworkInstance(object):
|
||||||
)
|
)
|
||||||
self.vx_mtu = self.max_mtu
|
self.vx_mtu = self.max_mtu
|
||||||
update_mtu = True
|
update_mtu = True
|
||||||
|
self.vx_mtu = int(self.vx_mtu)
|
||||||
# Ensure the MTU is valid
|
# Ensure the MTU is valid
|
||||||
if self.vx_mtu > self.max_mtu:
|
if self.vx_mtu > self.max_mtu:
|
||||||
self.logger.out(
|
self.logger.out(
|
||||||
|
@ -175,6 +176,7 @@ class VXNetworkInstance(object):
|
||||||
)
|
)
|
||||||
self.vx_mtu = self.max_mtu
|
self.vx_mtu = self.max_mtu
|
||||||
update_mtu = True
|
update_mtu = True
|
||||||
|
self.vx_mtu = int(self.vx_mtu)
|
||||||
# Ensure the MTU is valid
|
# Ensure the MTU is valid
|
||||||
if self.vx_mtu > self.max_mtu:
|
if self.vx_mtu > self.max_mtu:
|
||||||
self.logger.out(
|
self.logger.out(
|
||||||
|
|
Loading…
Reference in New Issue