diff options
| author | Rajesh Varatharaj <rvaratharaj@nvidia.com> | 2025-04-02 11:48:35 -0700 | 
|---|---|---|
| committer | Rajesh Varatharaj <rvaratharaj@nvidia.com> | 2025-04-02 11:48:42 -0700 | 
| commit | 35129c88b4f274d8d4b43244a9bae819919e3ded (patch) | |
| tree | e00c54c0ed0dfe7c2d6525e1ef8ce340b7f12736 /bgpd/bgp_mac.c | |
| parent | d10b08e4e85437c735861ace05e6d69a95407f02 (diff) | |
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 <rvaratharaj@nvidia.com>
Diffstat (limited to 'bgpd/bgp_mac.c')
| -rw-r--r-- | bgpd/bgp_mac.c | 3 | 
1 files changed, 3 insertions, 0 deletions
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",  | 
