Use correct isinstance instead of type

This commit is contained in:
Joshua Boniface 2021-10-09 19:03:31 -04:00
parent fb0651fb05
commit ebdea165f1
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out
update_mtu = True update_mtu = True
# Set MTU to an integer (if it's not) # Set MTU to an integer (if it's not)
if not type(self.vx_mtu, int): if not isinstance(self.vx_mtu, int):
self.vx_mtu = int(self.vx_mtu) self.vx_mtu = int(self.vx_mtu)
# Ensure the MTU is valid # Ensure the MTU is valid