]> git.puffer.fish Git - mirror/frr.git/commitdiff
babeld: Send the route's metric down to zebra.
authorDonald Sharp <sharpd@nvidia.com>
Thu, 22 Aug 2024 14:22:58 +0000 (10:22 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 22 Aug 2024 14:22:58 +0000 (10:22 -0400)
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>
babeld/route.c

index 2c7e92374896c9936cb437dfb06625cc8f32437d..466f41383cb8036697b9cb3925d510a8241bfab8 100644 (file)
@@ -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