zebra: fix unguarded debug in evpn code

Guard a debug in the evpn code.

Signed-off-by: Mark Stapp <mjs@cisco.com>
This commit is contained in:
Mark Stapp 2024-11-13 13:49:28 -05:00
parent 5456bc5d93
commit aee85f7c6a

View 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;
}