mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 23:48:11 +00:00
bgpd: Do not reap, schedule for deletion
Do not reap instead let's schedule for deletion and let best_path_selection take care of the deletion as it should. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
fca805972d
commit
6ebb7add1f
@ -2383,8 +2383,7 @@ static int delete_evpn_route(struct bgp *bgp, struct bgpevpn *vpn,
|
|||||||
*/
|
*/
|
||||||
delete_evpn_route_entry(bgp, afi, safi, dest, &pi);
|
delete_evpn_route_entry(bgp, afi, safi, dest, &pi);
|
||||||
if (pi) {
|
if (pi) {
|
||||||
dest = bgp_path_info_reap(dest, pi);
|
bgp_path_info_delete(dest, pi);
|
||||||
assert(dest);
|
|
||||||
evpn_route_select_install(bgp, vpn, dest, pi);
|
evpn_route_select_install(bgp, vpn, dest, pi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user