mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
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>
This commit is contained in:
parent
d10b08e4e8
commit
35129c88b4
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue