From e9d05aa24ec7d1f11596e1952498e0370098db4c Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sat, 9 Oct 2021 18:52:50 -0400 Subject: [PATCH] Ensure vx_mtu is always an int() --- node-daemon/pvcnoded/objects/VXNetworkInstance.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node-daemon/pvcnoded/objects/VXNetworkInstance.py b/node-daemon/pvcnoded/objects/VXNetworkInstance.py index 52c2205e..039bac46 100644 --- a/node-daemon/pvcnoded/objects/VXNetworkInstance.py +++ b/node-daemon/pvcnoded/objects/VXNetworkInstance.py @@ -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(