diff options
| author | Carmine Scarpitta <cscarpit@cisco.com> | 2024-09-06 23:03:03 +0200 |
|---|---|---|
| committer | Carmine Scarpitta <cscarpit@cisco.com> | 2024-09-06 23:24:34 +0200 |
| commit | bbd59ed8a1d39f5d17d01843313f3f70f787efa5 (patch) | |
| tree | 429c53769da9b9904777cf7c646e78b9e4a726df | |
| parent | 55c9b65c89a753ec87df74863e414c5f927c154d (diff) | |
tests: Add SRv6 SID Manager ISIS adj testcase
Signed-off-by: Carmine Scarpitta <cscarpit@cisco.com>
| -rw-r--r-- | tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py b/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py index 2bb6ec8162..ee53c1dc2e 100644 --- a/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py +++ b/tests/topotests/srv6_sid_manager/test_srv6_sid_manager.py @@ -304,6 +304,27 @@ def check_rib(name, cmd, expected_file): assert result is None, "Failed" +# +# Step 1 +# +# Test initial network convergence +# +def test_isis_adjacencies(): + logger.info("Test: check IS-IS adjacencies") + tgen = get_topogen() + + # Skip if previous fatal error condition is raised + if tgen.routers_have_failure(): + pytest.skip(tgen.errors) + + for rname in ["rt1", "rt2", "rt3", "rt4", "rt5", "rt6"]: + router_compare_json_output( + rname, + "show yang operational-data /frr-interface:lib isisd", + "show_yang_interface_isis_adjacencies.ref", + ) + + if __name__ == "__main__": args = ["-s"] + sys.argv[1:] sys.exit(pytest.main(args)) |
