diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-08-22 16:22:58 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@nvidia.com> | 2024-08-22 16:22:58 +0200 |
commit | b4c88abe9f61ff8e1402804a47ea74b8580aded2 (patch) | |
tree | 8929bc187e593defba1474841e0a99305112e4b2 /babeld/route.c | |
parent | Merge pull request #16597 from kprovost/master (diff) | |
download | frr-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.c | 2 |
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 |