From 35129c88b4f274d8d4b43244a9bae819919e3ded Mon Sep 17 00:00:00 2001 From: Rajesh Varatharaj Date: Wed, 2 Apr 2025 11:48:35 -0700 Subject: [PATCH] bgpd: Skip EVPN MAC processing for non-EVPN peers Issue: "Processing EVPN MAC interface change on peer" log message is printed even when the peer didnt have EVPN address family. Fix: Process only if the peer is in EVPN address family Ticket: #17890 Signed-off-by: Rajesh Varatharaj --- bgpd/bgp_mac.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bgpd/bgp_mac.c b/bgpd/bgp_mac.c index 86d6281ed1..d88e746143 100644 --- a/bgpd/bgp_mac.c +++ b/bgpd/bgp_mac.c @@ -219,6 +219,9 @@ static void bgp_mac_rescan_evpn_table(struct bgp *bgp, struct ethaddr *macaddr) if (!peer_established(peer->connection)) continue; + if (!peer->afc[afi][safi]) + continue; + if (bgp_debug_update(peer, NULL, NULL, 1)) zlog_debug( "Processing EVPN MAC interface change on peer %s %s", -- 2.39.5