Ensure vx_mtu is always an int()
This commit is contained in:
parent
f1b4ee02ba
commit
b7555468eb
|
@ -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