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

addons: bridge: v2: arp suppression enabled when no vlan is configured

the previous patch didn't cover implicit vlan, format bridge.VLANID

Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
Julien Fortin
2021-06-15 18:20:06 +02:00
parent 645fcb73e2
commit 3e5e36410e

View File

@ -894,7 +894,8 @@ class bridge(Bridge, moduleBase):
for obj in ifaceobj_getfunc(ifaceobj.upperifaces[0]) or []:
for upper_ifname in obj.upperifaces or []:
for upper_obj in ifaceobj_getfunc(upper_ifname) or []:
if upper_obj.link_kind & ifaceLinkKind.VLAN and upper_obj.get_attr_value_first("vlan-id") == bridge_access:
if upper_obj.link_kind & ifaceLinkKind.VLAN:
if str(self._get_vlan_id(upper_obj)) == bridge_access:
return True
self.logger.warning(