]> git.proxmox.com Git - mirror_ifupdown2.git/commitdiff
addons: introduces old_ifaceobjs to get_dependent_ifacenames
authorJulien Fortin <jfortin@nvidia.com>
Tue, 6 Jul 2021 10:46:02 +0000 (12:46 +0200)
committerJulien Fortin <jfortin@nvidia.com>
Tue, 6 Jul 2021 10:46:02 +0000 (12:46 +0200)
Other addon modules need to access the list of old ifaceobjs

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
ifupdown2/addons/batman_adv.py
ifupdown2/addons/openvswitch.py
ifupdown2/addons/openvswitch_port.py
ifupdown2/addons/ppp.py
ifupdown2/addons/xfrm.py

index fc8b74f8673a3573fdc3bc9816c09a75c2703301..5cf6279714363242e3410daef13a8553ade03cfe 100644 (file)
@@ -188,7 +188,7 @@ class batman_adv(Addon, moduleBase):
 
         return sorted(members)
 
-    def get_dependent_ifacenames(self, ifaceobj, ifaceobjs_all=None):
+    def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None, old_ifaceobjs=False):
         if not self._is_batman_device(ifaceobj):
             return None
 
index 8ba280668168de00bcabc91c029bbe4baf7ce569..2c9a76f759026efdd60421b88deb93ea2b1c1a19 100644 (file)
@@ -200,7 +200,7 @@ class openvswitch(Addon, moduleBase):
         cmd = "del-br %s"%(ifaceobj.name)
         self._ovs_vsctl(ifaceobj, [cmd])
 
-    def get_dependent_ifacenames (self, ifaceobj, ifaceobjs_all=None):
+    def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None, old_ifaceobjs=False):
         if not self._is_ovs_bridge(ifaceobj):
             return None
         ifaceobj.link_privflags |= ifaceLinkPrivFlags.OPENVSWITCH
index 856a02306acb0265130f750d558907042f480d23..ae8549aca7e78dfe9508f04f0f17b740b30a20fc 100644 (file)
@@ -212,7 +212,7 @@ class openvswitch_port(Addon, moduleBase):
 
         self._ovs_vsctl(ifaceobj, [cmd])
 
-    def get_dependent_ifacenames (self, ifaceobj, ifaceobjs_all=None):
+    def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None, old_ifaceobjs=False):
 
         if not self._is_ovs_port (ifaceobj):
             return None
index 9985459e113fff62b831874564e95fdd2129ed55..f24b8fc0310412b7c5136850d87f397140a0e9c7 100644 (file)
@@ -112,7 +112,7 @@ class ppp(Addon, moduleBase):
         except Exception as e:
             self.log_warn(str(e))
 
-    def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None):
+    def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None, old_ifaceobjs=False):
         if not self._is_my_interface(ifaceobj):
             return None
 
index 28833d5ef72f09c7e87202f26cf6957fbefeee81..e94a3800bf8dbd59b5eb49e42a950f1bf646ec95 100644 (file)
@@ -61,7 +61,7 @@ class xfrm(Addon, moduleBase):
         Addon.__init__(self)
         moduleBase.__init__(self, *args, **kargs)
 
-    def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None):
+    def get_dependent_ifacenames(self, ifaceobj, ifacenames_all=None, old_ifaceobjs=False):
 
         parent_int = self._get_parent_ifacename(ifaceobj)
         if parent_int: