1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

address: don't process_mtu for openvswitch interfaces

Openvswitch already manage mtu if ovs-mtu is defined.
(Ovs manage mtu in userland, and sync mtu for some interfaces in kernel).

If mtu is changed by address module, before the ovs userland mtu,
this give packets drop.
This commit is contained in:
Alexandre Derumier
2020-06-05 06:56:59 +02:00
parent e665b9f166
commit 8994bdd39a
4 changed files with 13 additions and 0 deletions

View File

@@ -201,6 +201,9 @@ class openvswitch(Addon, moduleBase):
self._ovs_vsctl(ifaceobj, [cmd])
def get_dependent_ifacenames (self, ifaceobj, ifaceobjs_all=None):
if not self._is_ovs_bridge(ifaceobj):
return None
ifaceobj.link_privflags |= ifaceLinkPrivFlags.OPENVSWITCH
return None
def _up (self, ifaceobj):