From: Rajesh Varatharaj Date: Wed, 2 Apr 2025 18:48:35 +0000 (-0700) Subject: bgpd: Skip EVPN MAC processing for non-EVPN peers X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=35129c88b4f274d8d4b43244a9bae819919e3ded;p=matthieu%2Ffrr.git 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 --- 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",