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

ifupdownmain: add "all" parameter to get_all_ifaceobjs

On a MLAG configured switch, only one vlan aware bridge is supported
The clag module need to access the full list of ifaceobjs. This is a
bit breaking the existing segmentation, not great but would otherwise
require a huge refactoring/rework.

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2021-04-06 23:30:34 +02:00
parent 20e8d38375
commit 3b1f78c181

View File

@ -448,7 +448,9 @@ class ifupdownMain:
return True
return False
def get_ifaceobjs(self, ifacename):
def get_ifaceobjs(self, ifacename, all=False):
if all:
return dict(self.ifaceobjdict)
return self.ifaceobjdict.get(ifacename)
def get_ifaceobjs_saved(self, ifacename):