mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 15:10:38 +00:00
babeld: Send the route's metric down to zebra.
Babel was thinking it was talking to the kernel for
route installation instead of zebra. Pass down the
metric instead.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit b4c88abe9f
)
This commit is contained in:
parent
a4c96c6a58
commit
679b4f07e8
@ -352,7 +352,7 @@ route_stream_done(struct route_stream *stream)
|
||||
static int
|
||||
metric_to_kernel(int metric)
|
||||
{
|
||||
return metric < INFINITY ? kernel_metric : KERNEL_INFINITY;
|
||||
return metric < INFINITY ? metric : KERNEL_INFINITY;
|
||||
}
|
||||
|
||||
/* This is used to maintain the invariant that the installed route is at
|
||||
|
Loading…
Reference in New Issue
Block a user