diff options
author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2020-06-07 16:53:00 +0200 |
---|---|---|
committer | Anuradha Karuppiah <anuradhak@nvidia.com> | 2020-12-01 18:44:37 +0100 |
commit | 1a4f9efd54707dff06e40723baf051609e0bb195 (patch) | |
tree | f8e337653799f343481bcd2a2f1b228c1907e24d /zebra/zebra_evpn_mac.c | |
parent | zebra: skip NDA_DST attr if NHG is present (diff) | |
download | frr-1a4f9efd54707dff06e40723baf051609e0bb195.tar.xz frr-1a4f9efd54707dff06e40723baf051609e0bb195.zip |
zebra: set inactive bit when zebra re-installs the MAC on dplane del
When a local mac is deleted by the dataplane zebra can re-install it
if the MAC is a SYNC MAC (learned from ES peers). The "local_inactive"
bit must be set as a part of the re-install to prevent zebra turning
around and advertising the MAC as locally active.
Also fixed up some debug logs in the slow-fail path to include the VNI.
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_evpn_mac.c')
-rw-r--r-- | zebra/zebra_evpn_mac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_evpn_mac.c b/zebra/zebra_evpn_mac.c index 2acbd858b..c1e8b2385 100644 --- a/zebra/zebra_evpn_mac.c +++ b/zebra/zebra_evpn_mac.c @@ -2199,8 +2199,8 @@ int zebra_evpn_del_local_mac(zebra_evpn_t *zevpn, struct ethaddr *macaddr, mac, old_bgp_ready, new_bgp_ready); } - /* re-install the entry in the kernel */ - zebra_evpn_sync_mac_dp_install(mac, false /* set_inactive */, + /* re-install the inactive entry in the kernel */ + zebra_evpn_sync_mac_dp_install(mac, true /* set_inactive */, false /* force_clear_static */, __func__); |