From b4c88abe9f61ff8e1402804a47ea74b8580aded2 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 22 Aug 2024 10:22:58 -0400 Subject: [PATCH] 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 --- babeld/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babeld/route.c b/babeld/route.c index 2c7e923748..466f41383c 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