summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_zebra.c
diff options
context:
space:
mode:
authorAlexander Rose <alexander.rose@secunet.com>2024-04-11 13:07:33 +0200
committerAlexander Rose <alexander.rose@secunet.com>2024-05-06 08:51:27 +0200
commit84d1285fc2c9b8944313cc4e8f0c74a5bf76bcf1 (patch)
tree6dbeb9638894b9bc24887c65b25e17f26a961c17 /ospf6d/ospf6_zebra.c
parent8e7fb950c13779d700fa79f82423bfcb64974b39 (diff)
ospf6d: Redistribute metric for AS-external route
When ospf6d originates an AS-external route that has been read from a kernel routing table, then the metric of that route was ignored until now. If a routemap is configured, then this metric will be redistributed from now on. Using metric increment and decrement in routemaps is supported by ospf6d now. Signed-off-by: Alexander Rose <alexander.rose@secunet.com>
Diffstat (limited to 'ospf6d/ospf6_zebra.c')
-rw-r--r--ospf6d/ospf6_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c
index 3245578b07..911f3567d4 100644
--- a/ospf6d/ospf6_zebra.c
+++ b/ospf6d/ospf6_zebra.c
@@ -289,7 +289,7 @@ static int ospf6_zebra_read_route(ZAPI_CALLBACK_ARGS)
if (cmd == ZEBRA_REDISTRIBUTE_ROUTE_ADD)
ospf6_asbr_redistribute_add(api.type, ifindex, &api.prefix,
api.nexthop_num, nexthop, api.tag,
- ospf6);
+ ospf6, api.metric);
else
ospf6_asbr_redistribute_remove(api.type, ifindex, &api.prefix,
ospf6);