From: Chirag Shah Date: Wed, 5 Dec 2018 01:08:47 +0000 (-0800) Subject: bgpd: set attribute change flag to evpn imported X-Git-Tag: frr-7.1-dev~125^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a9f8ad9fca1eebc741a2db5ed813be9a1e2c29c7;p=matthieu%2Ffrr.git bgpd: set attribute change flag to evpn imported EVPN route's attribute changes, mark attribute change flag to imported unicast route. A scenario where AS_PATH attribute have changed for an EVPN type-5 route, set attribute change to imported route. Ticket:CM-23008 Reviewed By: Testing Done: Validated via marking EVPN route with AS_PATH prepand. At the receiving VTEP, ensure attribute change flag is set to imported unicast route and bgp update sent to VTEPs subsequent bgp peers with AS_PATH prepend update. Signed-off-by: Chirag Shah --- diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c index 7be7937786..ac5880938f 100644 --- a/bgpd/bgp_evpn.c +++ b/bgpd/bgp_evpn.c @@ -2498,6 +2498,7 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf, &attr_new->mp_nexthop_global))) SET_FLAG(pi->flags, BGP_PATH_IGP_CHANGED); + bgp_path_info_set_flag(rn, pi, BGP_PATH_ATTR_CHANGED); /* Unintern existing, set to new. */ bgp_attr_unintern(&pi->attr); pi->attr = attr_new;