mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
addons: bridge: bridge-arp-nd-suppress should show up on ifquery --with-default if policy is set
Signed-off-by: Julien Fortin <jfortin@nvidia.com>
This commit is contained in:
@@ -3882,12 +3882,19 @@ class bridge(Bridge, moduleBase):
|
||||
|
||||
def _query(self, ifaceobj, **kwargs):
|
||||
""" add default policy attributes supported by the module """
|
||||
|
||||
if self.bridge_vxlan_arp_nd_suppress \
|
||||
and ifaceobj.link_privflags & ifaceLinkPrivFlags.BRIDGE_PORT \
|
||||
and ifaceobj.link_kind & ifaceLinkKind.VXLAN:
|
||||
ifaceobj.update_config("bridge-arp-nd-suppress", "on")
|
||||
|
||||
if (not (ifaceobj.link_kind & ifaceLinkKind.BRIDGE) or
|
||||
ifaceobj.get_attr_value_first('bridge-stp')):
|
||||
return
|
||||
if self.default_stp_on:
|
||||
ifaceobj.update_config('bridge-stp', 'yes')
|
||||
|
||||
|
||||
_run_ops = {
|
||||
'pre-up': _up,
|
||||
'post-down': _down,
|
||||
|
Reference in New Issue
Block a user