summaryrefslogtreecommitdiffstats
path: root/babeld/route.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-08-22 16:22:58 +0200
committerDonald Sharp <sharpd@nvidia.com>2024-08-22 16:22:58 +0200
commitb4c88abe9f61ff8e1402804a47ea74b8580aded2 (patch)
tree8929bc187e593defba1474841e0a99305112e4b2 /babeld/route.c
parentMerge pull request #16597 from kprovost/master (diff)
downloadfrr-b4c88abe9f61ff8e1402804a47ea74b8580aded2.tar.xz
frr-b4c88abe9f61ff8e1402804a47ea74b8580aded2.zip
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>
Diffstat (limited to '')
-rw-r--r--babeld/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/babeld/route.c b/babeld/route.c
index 2c7e92374..466f41383 100644
--- a/babeld/route.c
+++ b/babeld/route.c
@@ -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