From 4bf66f436e3530df75102a665c7898e2b92cea6f Mon Sep 17 00:00:00 2001 From: rvaratharaj Date: Tue, 21 Jun 2022 18:07:08 -0700 Subject: [PATCH] Zebra EVPN Debug: Fixing log flooding when disabling MLAG leaf configuration When disabling MLAG leaf configuration with EVPN, logs are getting flooded for each VNI, This is the result of each Type-2 packets. Ideally, this should be under log debugging, not a warning. Testing: UT Signed-off-by: Rajesh Varatharaj --- zebra/zebra_evpn.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zebra/zebra_evpn.c b/zebra/zebra_evpn.c index f2ad98c97b..168f0b2ce6 100644 --- a/zebra/zebra_evpn.c +++ b/zebra/zebra_evpn.c @@ -1396,9 +1396,10 @@ void zebra_evpn_rem_macip_add(vni_t vni, const struct ethaddr *macaddr, if (ifp) zif = ifp->info; if (!ifp || !if_is_operative(ifp) || !zif || !zif->brslave_info.br_if) { - zlog_warn( - "Ignoring remote MACIP ADD VNI %u, invalid interface state or info", - vni); + if (IS_ZEBRA_DEBUG_VXLAN) + zlog_debug( + "Ignoring remote MACIP ADD VNI %u, invalid interface state or info", + vni); return; }