summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2024-05-14 16:28:31 -0400
committerGitHub <noreply@github.com>2024-05-14 16:28:31 -0400
commit93b68f612853d3c920de44f240d268889c35eea2 (patch)
tree6e17f76ab07117703a93f2424885567282911eea
parenta243fc2206d1fc2b4def58fa21f3f6b413bc0073 (diff)
parente265b16f83e224f349b31f15227b3a99c30b8ecb (diff)
Merge pull request #16006 from pguibert6WIND/fix_colored_nexthop_2
bgpd: fix colored routes not installed after a switchover
-rw-r--r--bgpd/bgp_nht.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_nht.c b/bgpd/bgp_nht.c
index fca3da9386..79f62ef609 100644
--- a/bgpd/bgp_nht.c
+++ b/bgpd/bgp_nht.c
@@ -978,8 +978,7 @@ void bgp_nexthop_update(struct vrf *vrf, struct prefix *match,
frr_each (bgp_nexthop_cache, &bgp->nexthop_cache_table[afi],
bnc_iter) {
if (!prefix_same(match, &bnc_iter->prefix) ||
- bnc_iter->srte_color == 0 ||
- CHECK_FLAG(bnc_iter->flags, BGP_NEXTHOP_VALID))
+ bnc_iter->srte_color == 0)
continue;
bgp_process_nexthop_update(bnc_iter, nhr, false);