]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan.h
zebra: fix for unexpected fdb entry showing up during ifdown/ifup events
authorsharathr <sharathr@cumulusnetworks.com>
Fri, 8 Oct 2021 14:27:50 +0000 (07:27 -0700)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:05 +0000 (18:12 -0500)
commit00d30205eff94a0940e895ea0558355b48de0574
tree20a356254f7a45a682d6bc990b88eae48e4be701
parenta885db2f8c52bb583a3692b95171f7c98336b9b1
zebra: fix for unexpected fdb entry showing up during ifdown/ifup events

Ticket: 2674793
Testing Done:  precommit, evpn-min and evpn-smoke

The problem in this case is whenever we are triggering ifdown
followed by ifup of bridge, we see that remote mac entries
are programmed with vlan-1 in the fdb from zebra and never cleaned up.
bridge has vlan_default_pvid 1 which means any port that gets added
will initially have vlan 1 which then gets deleted by ifupdown2 and
the proper vlan gets added.

The problem lies in zebra where we are not cleaning up the remote
macs during vlan change.

Fix is to uninstall the remote macs and then install them
during vlan change.

Signed-off-by: Stephen Worley <sworley@nvidia.com>
zebra/zebra_evpn.c
zebra/zebra_evpn.h
zebra/zebra_l2.c
zebra/zebra_l2.h
zebra/zebra_vxlan.h
zebra/zebra_vxlan_if.c
zebra/zebra_vxlan_if.h