summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_abr.c
diff options
context:
space:
mode:
authorYash Ranjan <ranjany@vmware.com>2021-02-10 08:28:52 +0100
committerYash Ranjan <ranjany@vmware.com>2021-03-29 15:37:10 +0200
commitc4122b55a6068aa685091eed991b7b71390d9d03 (patch)
tree53675b1e1c194bb1699082f92752f5e07ba3ec53 /ospf6d/ospf6_abr.c
parentospf6d: Add logic to change the status of router to ASBR (diff)
downloadfrr-c4122b55a6068aa685091eed991b7b71390d9d03.tar.xz
frr-c4122b55a6068aa685091eed991b7b71390d9d03.zip
ospf6d: Add logic to set metric if route-map not present
Signed-off-by: Yash Ranjan <ranjany@vmware.com>
Diffstat (limited to 'ospf6d/ospf6_abr.c')
-rw-r--r--ospf6d/ospf6_abr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ospf6d/ospf6_abr.c b/ospf6d/ospf6_abr.c
index f6a246500..140fc0d3d 100644
--- a/ospf6d/ospf6_abr.c
+++ b/ospf6d/ospf6_abr.c
@@ -646,6 +646,7 @@ void ospf6_abr_defaults_to_stub(struct ospf6 *o)
struct listnode *node, *nnode;
struct ospf6_area *oa;
struct ospf6_route *def, *route;
+ int type = DEFAULT_ROUTE;
if (!o->backbone)
return;
@@ -659,6 +660,8 @@ void ospf6_abr_defaults_to_stub(struct ospf6 *o)
def->path.type = OSPF6_PATH_TYPE_INTER;
def->path.subtype = OSPF6_PATH_SUBTYPE_DEFAULT_RT;
def->path.area_id = o->backbone->area_id;
+ def->path.metric_type = metric_type(o, type, 0);
+ def->path.cost = metric_value(o, type, 0);
for (ALL_LIST_ELEMENTS(o->area_list, node, nnode, oa)) {
if (!IS_AREA_STUB(oa)) {