]> git.proxmox.com Git - mirror_frr.git/commit
zebra: unset sticky mac upon local deletion
authorChirag Shah <chirag@cumulusnetworks.com>
Thu, 9 May 2019 19:25:44 +0000 (12:25 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 May 2019 20:34:09 +0000 (16:34 -0400)
commit390078094563b343d93392b6e2e5157e4303d1ed
treeb063be4eedfad2a11ca29f2ee4a5c8e60eb3d7c9
parent4b46b6f3eaae324121e843bbee7d18bf58437574
zebra: unset sticky mac upon local deletion

if the local sticky mac delete request is received,
if there are associated neighbor entries present, mac's
only local flag is removed and marked as auto mac.

this results in next local mac learning automatically assumes
mac is sticky.

There is a case when bridge learning off is configured, user
configures sticky mac via bridge fdb add.
This MAC learns associated neighbor entry.
Later user deletes stick mac via bridge fdb del, this triggers
frr to delete mac but if there are neighbors present, frr marks
MAC as AUTO but does not remove sticky flag.
User enables bridge learning on which triggers
The mac to learn as dynamic entry and in absence of this
fix, the mac is marked as sticky.

Ticket:CM-24968
Reviewed By:CCR-8683
Testing Done:

Validated broken condition with internally reproduction
with fix and without.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
zebra/zebra_vxlan.c