mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +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
14a2073ca0
commit
120bde414e
@ -352,7 +352,7 @@ route_stream_done(struct route_stream *stream)
|
|||||||
static int
|
static int
|
||||||
metric_to_kernel(int metric)
|
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
|
/* This is used to maintain the invariant that the installed route is at
|
||||||
|
Loading…
Reference in New Issue
Block a user