mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: address: never reset mtu on lo implicity
we should leave the mtu on lo to the default mtu if user has not requested to change it. lo has a larger mtu because it does not really depend on a physical mtu. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -314,7 +314,7 @@ class address(moduleBase):
|
||||
mtu = ifaceobj.get_attr_value_first('mtu')
|
||||
if mtu:
|
||||
self.ipcmd.link_set(ifaceobj.name, 'mtu', mtu)
|
||||
elif (not ifaceobj.link_kind and
|
||||
elif (not (ifaceobj.name == 'lo') and not ifaceobj.link_kind and
|
||||
not (ifaceobj.link_privflags & ifaceLinkPrivFlags.BOND_SLAVE) and
|
||||
self.default_mtu):
|
||||
# logical devices like bridges and vlan devices rely on mtu
|
||||
|
Reference in New Issue
Block a user