]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra:fix evpn dup detected local mac del event
authorChirag Shah <chirag@nvidia.com>
Sat, 22 Oct 2022 23:00:14 +0000 (16:00 -0700)
committerChirag Shah <chirag@nvidia.com>
Thu, 20 Apr 2023 22:45:39 +0000 (15:45 -0700)
The current local mac delete event send to flag with force
always which breaks the duplicate detected MACs where
it requires to be resynced from bgpd to earlier state.

Ticket:#3233019
Issue:3233019

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

index fb135c9929c15348ddf19fe55957f856e24ce136..6d5cd66143d3cbbe9100e9d131147233096aca4d 100644 (file)
@@ -1038,12 +1038,11 @@ int zebra_evpn_macip_send_msg_to_client(vni_t vni,
                char flag_buf[MACIP_BUF_SIZE];
 
                zlog_debug(
-                       "Send MACIP %s f %s MAC %pEA IP %pIA seq %u L2-VNI %u ESI %s to %s",
+                       "Send MACIP %s f %s state %u MAC %pEA IP %pIA seq %u L2-VNI %u ESI %s to %s",
                        (cmd == ZEBRA_MACIP_ADD) ? "Add" : "Del",
                        zclient_evpn_dump_macip_flags(flags, flag_buf,
                                                      sizeof(flag_buf)),
-                       macaddr, ip, seq, vni,
-                       es ? es->esi_str : "-",
+                       state, macaddr, ip, seq, vni, es ? es->esi_str : "-",
                        zebra_route_string(client->proto));
        }
 
@@ -2445,7 +2444,7 @@ int zebra_evpn_del_local_mac(struct zebra_evpn *zevpn, struct zebra_mac *mac,
 
        /* Remove MAC from BGP. */
        zebra_evpn_mac_send_del_to_client(zevpn->vni, &mac->macaddr, mac->flags,
-                                         false /* force */);
+                                         clear_static /* force */);
 
        zebra_evpn_es_mac_deref_entry(mac);