Skip to content

Commit 13136e9

Browse files
committed
bgpd: fix evpn attributes being dropped on input
All assignments of the EVPN attributes (ESI and Gateway IP) are gated behind the peer being set up for inbound soft-reconfiguration. There are no actual reasons for this limitation, so let's perform the EVPN attribute assignment no matter what when soft reconfiguration is not enabled. Fixes: 6e076ba ("bgpd: Fix for ain->attr corruption during path update")
1 parent 2e3a23a commit 13136e9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bgpd/bgp_route.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -5165,7 +5165,9 @@ void bgp_update(struct peer *peer, const struct prefix *p, uint32_t addpath_id,
51655165
* attr->evpn_overlay with evpn directly. Instead memcpy
51665166
* evpn to new_atr.evpn_overlay before it is interned.
51675167
*/
5168-
if (soft_reconfig && evpn && afi == AFI_L2VPN) {
5168+
if (evpn && afi == AFI_L2VPN &&
5169+
(soft_reconfig ||
5170+
!CHECK_FLAG(peer->af_flags[afi][safi], PEER_FLAG_SOFT_RECONFIG))) {
51695171
bgp_attr_set_evpn_overlay(&new_attr, evpn);
51705172
p_evpn = NULL;
51715173
}

tests/topotests/bgp_evpn_route_map_set/r2/frr.conf

-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ router bgp 64000
1414
!
1515
address-family l2vpn evpn
1616
neighbor 10.0.0.2 activate
17-
! workaround for now, as frr drops some evpn attributes like gw-ip if soft
18-
! reconf is not enabled for inbound routes
19-
neighbor 10.0.0.2 soft-reconfiguration inbound
2017
!
2118
advertise-all-vni
2219
exit-address-family

0 commit comments

Comments
 (0)