From a9f8ad9fca1eebc741a2db5ed813be9a1e2c29c7 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Tue, 4 Dec 2018 17:08:47 -0800 Subject: [PATCH] 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 --- bgpd/bgp_evpn.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5