mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: vlan: fix checking of vlan device in query-running
Ticket: CM-11804 Reviewed By: julien, nikhil Testing Done: Tested with failing config in the bug This patch makes sure macvlan devices are ignored by ifquery -ra Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -2049,7 +2049,9 @@ class ifupdownMain(ifupdownBase):
|
||||
for i in ifacenames:
|
||||
for ifaceobj in self.get_ifaceobjs(i):
|
||||
if ((not running and self.is_ifaceobj_noconfig(ifaceobj)) or
|
||||
(running and not ifaceobj.is_config_present())):
|
||||
(running and not ifaceobj.is_config_present() and
|
||||
not self.is_iface_builtin_byname(i) and
|
||||
not ifaceobj.upperifaces)):
|
||||
continue
|
||||
ifaceobjs.append(ifaceobj)
|
||||
if (ifupdownflags.flags.WITH_DEPENDS and
|
||||
|
Reference in New Issue
Block a user