Skip to content

Commit

Permalink
topotests: use the Role field when testing ospf6
Browse files Browse the repository at this point in the history
To handle the future change of naming in the ospf6 state,
align the ospf6 tests with the new 'Role' nickname instead
of the old 'state' value.

Signed-off-by: Philippe Guibert <[email protected]>
  • Loading branch information
pguibert6WIND authored and root committed Nov 29, 2023
1 parent 3a97a00 commit 2886f64
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/topotests/ospf6_topo1/test_ospf6_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def expect_neighbor_full(router, neighbor):
topotest.router_json_cmp,
tgen.gears[router],
"show ipv6 ospf6 neighbor json",
{"neighbors": [{"neighborId": neighbor, "state": "Full"}]},
{"neighbors": [{"neighborId": neighbor, "Role": "Full"}]},
)
_, result = topotest.run_and_expect(test_func, None, count=130, wait=1)
assertmsg = '"{}" convergence failure'.format(router)
Expand Down
2 changes: 1 addition & 1 deletion tests/topotests/ospf6_topo2/test_ospf6_topo2.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def expect_neighbor_full(router, neighbor):
topotest.router_json_cmp,
tgen.gears[router],
"show ipv6 ospf6 neighbor json",
{"neighbors": [{"neighborId": neighbor, "state": "Full"}]},
{"neighbors": [{"neighborId": neighbor, "Role": "Full"}]},
)
_, result = topotest.run_and_expect(test_func, None, count=130, wait=1)
assertmsg = '"{}" convergence failure'.format(router)
Expand Down
2 changes: 1 addition & 1 deletion tests/topotests/ospf_topo1/test_ospf_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def expect_ospfv3_neighbor_full(router, neighbor):
topotest.router_json_cmp,
tgen.gears[router],
"show ipv6 ospf6 neighbor json",
{"neighbors": [{"neighborId": neighbor, "state": "Full"}]},
{"neighbors": [{"neighborId": neighbor, "Role": "Full"}]},
)
_, result = topotest.run_and_expect(test_func, None, count=130, wait=1)
assertmsg = '"{}" convergence failure'.format(router)
Expand Down

0 comments on commit 2886f64

Please sign in to comment.