summaryrefslogtreecommitdiffstats
path: root/zebra
diff options
context:
space:
mode:
authorStephen Worley <sworley@nvidia.com>2021-11-09 23:32:17 +0100
committerStephen Worley <sworley@nvidia.com>2022-10-11 22:18:21 +0200
commit0653625d3b8ba939b8b1cf1785a2dc12baecee74 (patch)
treef28d65cb2e8a1584a255a963ef11d99f6fdb6369 /zebra
parentbgpd,zebra,lib: bgp evpn vni macip into two tables (diff)
downloadfrr-0653625d3b8ba939b8b1cf1785a2dc12baecee74.tar.xz
frr-0653625d3b8ba939b8b1cf1785a2dc12baecee74.zip
zebra: add some neigh del not found debugs
Add some neigh deletion debugs for when the neigh isn't found or there is a MAC mismatch on what was sent and found. Signed-off-by: Stephen Worley <sworley@nvidia.com>
Diffstat (limited to 'zebra')
-rw-r--r--zebra/zebra_evpn.c9
-rw-r--r--zebra/zebra_evpn_neigh.c6
2 files changed, 13 insertions, 2 deletions
diff --git a/zebra/zebra_evpn.c b/zebra/zebra_evpn.c
index e37f56f0e..f20747744 100644
--- a/zebra/zebra_evpn.c
+++ b/zebra/zebra_evpn.c
@@ -1528,7 +1528,7 @@ void zebra_evpn_rem_macip_del(vni_t vni, const struct ethaddr *macaddr,
if (n && !mac) {
zlog_warn(
- "Failed to locate MAC %pEA for neigh %pIA VNI %u upon remote MACIP DEL",
+ "Failed to locate MAC %pEA for Neigh %pIA VNI %u upon remote MACIP DEL",
macaddr, ipaddr, vni);
return;
}
@@ -1536,8 +1536,13 @@ void zebra_evpn_rem_macip_del(vni_t vni, const struct ethaddr *macaddr,
/* If the remote mac or neighbor doesn't exist there is nothing
* more to do. Otherwise, uninstall the entry and then remove it.
*/
- if (!mac && !n)
+ if (!mac && !n) {
+ if (IS_ZEBRA_DEBUG_VXLAN)
+ zlog_debug(
+ "Failed to locate MAC %pEA & Neigh %pIA VNI %u upon remote MACIP DEL",
+ macaddr, ipaddr, vni);
return;
+ }
zvrf = zevpn->vxlan_if->vrf->info;
diff --git a/zebra/zebra_evpn_neigh.c b/zebra/zebra_evpn_neigh.c
index 470bbdb60..5044d2f6c 100644
--- a/zebra/zebra_evpn_neigh.c
+++ b/zebra/zebra_evpn_neigh.c
@@ -2245,6 +2245,12 @@ void zebra_evpn_neigh_remote_uninstall(struct zebra_evpn *zevpn,
zebra_evpn_neigh_del(zevpn, n);
zebra_evpn_deref_ip2mac(zevpn, mac);
}
+ } else {
+ if (IS_ZEBRA_DEBUG_VXLAN)
+ zlog_debug(
+ "%s: IP %pIA MAC %pEA (flags 0x%x) found doesn't match MAC %pEA, ignoring Neigh DEL",
+ __func__, ipaddr, &n->emac, n->flags,
+ &mac->macaddr);
}
}