From 13211328908026a6ae923aa699e9692329b4f6a7 Mon Sep 17 00:00:00 2001 From: Sam Tannous Date: Tue, 17 Mar 2015 21:59:15 -0400 Subject: [PATCH] Prevent MTU from being set to 1500 on interface downing. Ticket: CM-5355 Reviewed By: roopa Testing Done: Tested config in ticket MTU settings are defaulted 1500 when interface is ifdowned. This has the effect of changing the MTU on the interface and any subinterfaces to 1500. And if these subinterfaces are in a bridge, the bridge will pick the MIN MTU so the bridge keeps this MTU even after the interface is brought back up. The sub interface does not change to a higher value then 1500 (kernel VLAN driver only moves the MTU is the decreasing direction. --- addons/address.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/addons/address.py b/addons/address.py index 627837e..947487f 100644 --- a/addons/address.py +++ b/addons/address.py @@ -204,10 +204,6 @@ class address(moduleBase): ifaceobj.get_attr_value_first('gateway'), ifaceobj.get_attr_value_first('metric')) self.ipcmd.del_addr_all(ifaceobj.name) - mtu = ifaceobj.get_attr_value_first('mtu') - if mtu: - self.ipcmd.link_set(ifaceobj.name, 'mtu', - self.get_mod_subattr('mtu', 'default')) alias = ifaceobj.get_attr_value_first('alias') if alias: self.ipcmd.link_set(ifaceobj.name, 'alias', "\'\'")