]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: set attribute change flag to evpn imported
authorChirag Shah <chirag@cumulusnetworks.com>
Wed, 5 Dec 2018 01:08:47 +0000 (17:08 -0800)
committerChirag Shah <chirag@cumulusnetworks.com>
Thu, 6 Dec 2018 04:32:03 +0000 (20:32 -0800)
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 <chirag@cumulusnetworks.com>
bgpd/bgp_evpn.c

index 7be79377866a7f82824434a3e23f055efbb73f27..ac5880938f2140829c8eeab68571e515e16d00d5 100644 (file)
@@ -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;