]> git.puffer.fish Git - mirror/frr.git/commitdiff
Zebra EVPN Debug: Fixing log flooding when disabling MLAG leaf configuration 11454/head
authorrvaratharaj <rvaratharaj@nvidia.com>
Wed, 22 Jun 2022 01:07:08 +0000 (18:07 -0700)
committerrvaratharaj <rvaratharaj@nvidia.com>
Wed, 22 Jun 2022 01:18:14 +0000 (18:18 -0700)
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 <rvaratharaj@nvidia.com>
zebra/zebra_evpn.c

index f2ad98c97b73e4ffab16cfb7bc9b9493f53e601b..168f0b2ce69e87e799bb7b4d14f295e0571829ed 100644 (file)
@@ -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;
        }