]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: fix unguarded debug in evpn code 17426/head
authorMark Stapp <mjs@cisco.com>
Wed, 13 Nov 2024 18:49:28 +0000 (13:49 -0500)
committerMark Stapp <mjs@cisco.com>
Wed, 13 Nov 2024 18:49:28 +0000 (13:49 -0500)
Guard a debug in the evpn code.

Signed-off-by: Mark Stapp <mjs@cisco.com>
zebra/zebra_evpn.c

index 0ad42ebd5b0d56dec9dd7b83ead253469be621ba..585c926d099c1f814c8c8fcc452be83a78497dbf 100644 (file)
@@ -748,7 +748,8 @@ struct zebra_evpn *zebra_evpn_from_svi(struct interface *ifp,
 
        /* Make sure the linked interface is a bridge. */
        if (!IS_ZEBRA_IF_BRIDGE(br_if)) {
-               zlog_debug("%s: br_if NOT a bridge", __func__);
+               if (IS_ZEBRA_DEBUG_VXLAN)
+                       zlog_debug("%s: br_if NOT a bridge", __func__);
                return NULL;
        }