Skip to content

Commit

Permalink
Merge pull request FRRouting#16003 from pguibert6WIND/fix_colored_nex…
Browse files Browse the repository at this point in the history
…thop

bgpd: fix colored nexthops resolution
  • Loading branch information
riw777 authored May 13, 2024
2 parents 2e02086 + 42c497d commit 281c891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bgpd/bgp_nht.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,12 +972,12 @@ void bgp_nexthop_update(struct vrf *vrf, struct prefix *match,
* which should provide a better infrastructure to solve this issue in
* a more efficient and elegant way.
*/
if (nhr->srte_color == 0 && bnc_nhc) {
if (nhr->srte_color == 0) {
struct bgp_nexthop_cache *bnc_iter;

frr_each (bgp_nexthop_cache, &bgp->nexthop_cache_table[afi],
bnc_iter) {
if (!prefix_same(&bnc_nhc->prefix, &bnc_iter->prefix) ||
if (!prefix_same(match, &bnc_iter->prefix) ||
bnc_iter->srte_color == 0 ||
CHECK_FLAG(bnc_iter->flags, BGP_NEXTHOP_VALID))
continue;
Expand Down

0 comments on commit 281c891

Please sign in to comment.