The backup_nexthop entry list has been populated by mistake,
and should not. Fix this by reverting the introduced behavior.
Fixes: 237ebf8d4503 ("bgpd: rework bgp_zebra_announce() function, separate nexthop handling")
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
&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);