mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-04 19:31:44 +00:00
bgpd: fix do not use api.backup_nexthop in ZAPI message
The backup_nexthop entry list has been populated by mistake, and should not. Fix this by reverting the introduced behavior. Fixes:237ebf8d45
("bgpd: rework bgp_zebra_announce() function, separate nexthop handling") Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> (cherry picked from commitd4390fc217
)
This commit is contained in:
parent
212a75eca9
commit
7bb66b83b0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user