summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ospf6d/ospf6_nssa.c2
-rw-r--r--tests/topotests/ospf6_topo2/test_ospf6_topo2.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_nssa.c b/ospf6d/ospf6_nssa.c
index 10b7d2d9f..89a72bf22 100644
--- a/ospf6d/ospf6_nssa.c
+++ b/ospf6d/ospf6_nssa.c
@@ -1311,7 +1311,7 @@ void ospf6_nssa_lsa_originate(struct ospf6_route *route,
/* Fill AS-External-LSA */
/* Metric type */
- if (route->path.metric_type == OSPF6_PATH_TYPE_EXTERNAL2)
+ if (route->path.metric_type == 2)
SET_FLAG(as_external_lsa->bits_metric, OSPF6_ASBR_BIT_E);
else
UNSET_FLAG(as_external_lsa->bits_metric, OSPF6_ASBR_BIT_E);
diff --git a/tests/topotests/ospf6_topo2/test_ospf6_topo2.py b/tests/topotests/ospf6_topo2/test_ospf6_topo2.py
index acaa3b8a9..8be461aea 100644
--- a/tests/topotests/ospf6_topo2/test_ospf6_topo2.py
+++ b/tests/topotests/ospf6_topo2/test_ospf6_topo2.py
@@ -217,8 +217,8 @@ def test_ospfv3_expected_route_types():
{
"numberOfIntraAreaRoutes": 1,
"numberOfInterAreaRoutes": 2,
- "numberOfExternal1Routes": 4,
- "numberOfExternal2Routes": 0,
+ "numberOfExternal1Routes": 0,
+ "numberOfExternal2Routes": 4,
},
)
@@ -330,7 +330,7 @@ def test_nssa_lsa_type7():
]
route = {
"2001:db8:100::/64": {
- "pathType": "E1",
+ "pathType": "E2",
"nextHops": [{"nextHop": "::", "interfaceName": "r4-eth0"}],
}
}