From 46a416bc7818a10b9225d7053f379f1c632e4248 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Tue, 18 Jun 2019 00:01:12 -0400 Subject: [PATCH] Use a proper variable for vni_mtu --- node-daemon/pvcd/VXNetworkInstance.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/node-daemon/pvcd/VXNetworkInstance.py b/node-daemon/pvcd/VXNetworkInstance.py index b9320696..a511f8f3 100644 --- a/node-daemon/pvcd/VXNetworkInstance.py +++ b/node-daemon/pvcd/VXNetworkInstance.py @@ -38,6 +38,7 @@ class VXNetworkInstance(object): self.logger = logger self.this_node = this_node self.vni_dev = config['vni_dev'] + self.vni_mtu = config['vni_mtu'] self.nettype = zkhandler.readdata(self.zk_conn, '/networks/{}/nettype'.format(self.vni)) if self.nettype == 'bridged': @@ -438,7 +439,7 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out ) ) - vx_mtu = self.config.vni_mtu + vx_mtu = self.vni_mtu common.run_os_command( 'ip link set {} mtu {} up'.format( self.vlan_nic, @@ -486,7 +487,7 @@ add rule inet filter forward ip6 saddr {netaddr6} counter jump {vxlannic}-out ) ) - vx_mtu = self.config.vni_mtu - 50 + vx_mtu = self.vni_mtu - 50 common.run_os_command( 'ip link set {} mtu {} up'.format( self.vxlan_nic,