summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-11-07 12:04:54 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-11-07 13:05:35 +0100
commit7de464b00f1a188ec919abce56de6215f05fc4c0 (patch)
treeb8dd503aba21219b8947a7c7e4151bb7b4df4f82 /bgpd/bgp_route.c
parentMerge pull request #17363 from acooks-at-bda/fix-redundant-null-ptr-check-CID... (diff)
downloadfrr-7de464b00f1a188ec919abce56de6215f05fc4c0.tar.xz
frr-7de464b00f1a188ec919abce56de6215f05fc4c0.zip
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>
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 7a8773947..74b227f97 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -6292,7 +6292,6 @@ void bgp_clear_stale_route(struct peer *peer, afi_t afi, safi_t safi)
vpn_leak_to_vrf_withdraw(pi);
bgp_rib_remove(rm, pi, peer, afi, safi);
- break;
}
}
} else {
@@ -6321,7 +6320,6 @@ void bgp_clear_stale_route(struct peer *peer, afi_t afi, safi_t safi)
pi);
bgp_rib_remove(dest, pi, peer, afi, safi);
- break;
}
}
}