Skip to content

Commit

Permalink
Merge pull request #16260 from pguibert6WIND/no_backup_nexthop_for_now
Browse files Browse the repository at this point in the history
bgpd: fix do not use api.backup_nexthop in ZAPI message
  • Loading branch information
ton31337 authored Jun 21, 2024
2 parents 34a6e22 + d4390fc commit c48db43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bgpd/bgp_zebra.c
Original file line number Diff line number Diff line change
Expand Up @@ -1331,10 +1331,7 @@ static void bgp_zebra_announce_parse_nexthop(
&nh_weight))
continue;
}
if (CHECK_FLAG(info->flags, BGP_PATH_SELECTED))
api_nh = &api->nexthops[*valid_nh_count];
else
api_nh = &api->backup_nexthops[*valid_nh_count];
api_nh = &api->nexthops[*valid_nh_count];

api_nh->srte_color = bgp_attr_get_color(info->attr);

Expand Down

0 comments on commit c48db43

Please sign in to comment.