Merge pull request #16260 from pguibert6WIND/no_backup_nexthop_for_now

bgpd: fix do not use api.backup_nexthop in ZAPI message
This commit is contained in:
Donatas Abraitis 2024-06-21 09:43:40 +03:00 committed by GitHub
commit c48db4327c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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->srte_color = bgp_attr_get_color(info->attr);