diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2021-09-07 00:50:27 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2021-09-21 22:43:45 +0200 |
commit | 242a9767f7bf44b1ec8944ca880962c62d5264b2 (patch) | |
tree | a5ac6d74aad64962a33026f33cdbcf04aa7cf4b6 /tests/topotests/ospf6_topo2 | |
parent | Merge pull request #9416 from pguibert6WIND/vxlan_evpn_updates (diff) | |
download | frr-242a9767f7bf44b1ec8944ca880962c62d5264b2.tar.xz frr-242a9767f7bf44b1ec8944ca880962c62d5264b2.zip |
ospf6d: fix metric type of NSSA Type-7 LSAs
Fix wrong comparison since route->path.metric_type is always set
to either 1 or 2. The OSPF6_PATH_TYPE_EXTERNAL2 constant, whose
value is 4, refers to a route type so its usage was incorrect here.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'tests/topotests/ospf6_topo2')
-rw-r--r-- | tests/topotests/ospf6_topo2/test_ospf6_topo2.py | 6 |
1 files changed, 3 insertions, 3 deletions
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"}], } } |