Merge pull request #5656 from pguibert6WIND/import_evpn_entries

bgpd: import evpn entries with nexthop self attribute
This commit is contained in:
Donatas Abraitis 2020-01-22 10:21:59 +02:00 committed by GitHub
commit fa7f9d61eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2704,6 +2704,8 @@ static int install_evpn_route_entry_in_vrf(struct bgp *bgp_vrf,
pi->attr = attr_new;
pi->uptime = bgp_clock();
}
/* as it is an importation, change nexthop */
bgp_path_info_set_flag(rn, pi, BGP_PATH_ANNC_NH_SELF);
bgp_aggregate_increment(bgp_vrf, &rn->p, pi, afi, safi);