When reloading the network configuration via ifupdown2 and a bond has bridge-slaves defined with their altname, the bond would break after reloading - then work again after every second reload.
The issue for this is that the port list is parsed directly via parse_port_list, provided by the modulebase. This method doesn't do any translation of altnames. This leads to a wrong detection of pre-existing slave interfaces when reloading. ifupdown then tries to enslave the interfaces with the 'real' name and un-enslave the interfaces with the altname, leading to no interfaces being enslaved to the bond at all. Signed-off-by: Stefan Hanreich <s.hanre...@proxmox.com> --- Notes: Might want to hold off on applying this one until Christoph could take a closer look. While I couldn't find issues with bridge_ports and VLAN devices in my tests, both modules also use parse_port_list so I think a closer look is warranted as well for those invocations. This solves the bond issue on my test node at least. ...r-addons-add-transparent-support-interface-a.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/debian/patches/pve/0011-nlmanager-addons-add-transparent-support-interface-a.patch b/debian/patches/pve/0011-nlmanager-addons-add-transparent-support-interface-a.patch index 5a67c6a..5c8fe18 100644 --- a/debian/patches/pve/0011-nlmanager-addons-add-transparent-support-interface-a.patch +++ b/debian/patches/pve/0011-nlmanager-addons-add-transparent-support-interface-a.patch @@ -51,6 +51,17 @@ index 2af5cf6..ef6d37a 100644 def _is_bond(self, ifaceobj): # at first link_kind is not set but once ifupdownmain +@@ -301,6 +302,10 @@ + or ifaceobj.get_attr_value_first("bond-mode") \ + or self.get_bond_slaves(ifaceobj) + ++ def parse_port_list(self, ifacename, port_expr, ifacenames=None): ++ port_list = super().parse_port_list(ifacename, port_expr, ifacenames) ++ return self.cache.link_translate_altnames(port_list) ++ + def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None, old_ifaceobjs=False): + """ Returns list of interfaces dependent on ifaceobj """ + diff --git a/ifupdown2/addons/bridge.py b/ifupdown2/addons/bridge.py index 87bcda9..1da8de7 100644 --- a/ifupdown2/addons/bridge.py -- 2.47.2 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel