Merge pull request #16006 from pguibert6WIND/fix_colored_nexthop_2

bgpd: fix colored routes not installed after a switchover
This commit is contained in:
Russ White 2024-05-14 16:28:31 -04:00 committed by GitHub
commit 93b68f6128
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -978,8 +978,7 @@ void bgp_nexthop_update(struct vrf *vrf, struct prefix *match,
frr_each (bgp_nexthop_cache, &bgp->nexthop_cache_table[afi], frr_each (bgp_nexthop_cache, &bgp->nexthop_cache_table[afi],
bnc_iter) { bnc_iter) {
if (!prefix_same(match, &bnc_iter->prefix) || if (!prefix_same(match, &bnc_iter->prefix) ||
bnc_iter->srte_color == 0 || bnc_iter->srte_color == 0)
CHECK_FLAG(bnc_iter->flags, BGP_NEXTHOP_VALID))
continue; continue;
bgp_process_nexthop_update(bnc_iter, nhr, false); bgp_process_nexthop_update(bnc_iter, nhr, false);