Skip to content

Commit c48db43

Browse files
authored
Merge pull request FRRouting#16260 from pguibert6WIND/no_backup_nexthop_for_now
bgpd: fix do not use api.backup_nexthop in ZAPI message
2 parents 34a6e22 + d4390fc commit c48db43

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bgpd/bgp_zebra.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,10 +1331,7 @@ static void bgp_zebra_announce_parse_nexthop(
13311331
&nh_weight))
13321332
continue;
13331333
}
1334-
if (CHECK_FLAG(info->flags, BGP_PATH_SELECTED))
1335-
api_nh = &api->nexthops[*valid_nh_count];
1336-
else
1337-
api_nh = &api->backup_nexthops[*valid_nh_count];
1334+
api_nh = &api->nexthops[*valid_nh_count];
13381335

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

0 commit comments

Comments
 (0)