mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-01 12:35:46 +00:00
zebra: Set the weight for non-recursive next-hop
If using weighted ECMP, the weight for non-recursive next-hop should be inherited from recursive next-hop. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
83b4706f30
commit
dbf83cfd36
@ -1747,6 +1747,12 @@ static struct nexthop *nexthop_set_resolved(afi_t afi,
|
||||
SET_FLAG(resolved_hop->flags, NEXTHOP_FLAG_ACTIVE);
|
||||
|
||||
resolved_hop->vrf_id = nexthop->vrf_id;
|
||||
|
||||
/* Using weighted ECMP, we should respect the weight and use
|
||||
* the same value for non-recursive next-hop.
|
||||
*/
|
||||
resolved_hop->weight = nexthop->weight;
|
||||
|
||||
switch (newhop->type) {
|
||||
case NEXTHOP_TYPE_IPV4:
|
||||
case NEXTHOP_TYPE_IPV4_IFINDEX:
|
||||
|
Loading…
Reference in New Issue
Block a user