bgpd: Clear all paths including addpath once GR expires

We iterated over all bgp_path_info's, but once we remove the path, we didn't
check for other paths under the same bgp_dest.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 7de464b00f)
This commit is contained in:
Donatas Abraitis 2024-11-07 13:04:54 +02:00 committed by Mergify
parent f640f0714c
commit f1454d95aa

View File

@ -6279,7 +6279,6 @@ void bgp_clear_stale_route(struct peer *peer, afi_t afi, safi_t safi)
vpn_leak_to_vrf_withdraw(pi); vpn_leak_to_vrf_withdraw(pi);
bgp_rib_remove(rm, pi, peer, afi, safi); bgp_rib_remove(rm, pi, peer, afi, safi);
break;
} }
} }
} else { } else {
@ -6308,7 +6307,6 @@ void bgp_clear_stale_route(struct peer *peer, afi_t afi, safi_t safi)
pi); pi);
bgp_rib_remove(dest, pi, peer, afi, safi); bgp_rib_remove(dest, pi, peer, afi, safi);
break;
} }
} }
} }