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:
@ -448,7 +448,9 @@ class ifupdownMain:
|
|||||||
return True
|
return True
|
||||||
return False
|
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)
|
return self.ifaceobjdict.get(ifacename)
|
||||||
|
|
||||||
def get_ifaceobjs_saved(self, ifacename):
|
def get_ifaceobjs_saved(self, ifacename):
|
||||||
|
Reference in New Issue
Block a user