diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-08-22 10:22:58 -0400 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-23 11:41:30 +0000 |
| commit | 679b4f07e86e518360f6cde558d05ace957a29af (patch) | |
| tree | e06ddb65700db22e994c47f17e7449d09ad327ef /babeld | |
| parent | a4c96c6a589303f2f3bdde2e1a2aae33e4f2894c (diff) | |
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 b4c88abe9f61ff8e1402804a47ea74b8580aded2)
Diffstat (limited to 'babeld')
| -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 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 |
