diff options
| author | Christian Breunig <christian@breunig.cc> | 2025-07-28 20:16:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-28 20:16:26 +0200 |
| commit | 51a17eadc063423a80502462dba0b67cb4fe3496 (patch) | |
| tree | aa222a506a3025b2d843c9f62003fe2518424046 /smoketest/scripts/cli | |
| parent | 112169e27080829fd94dee86a392a539f2d34fe8 (diff) | |
| parent | 19d67d66b28b6ec76dd74cf48cee0bae84925e6b (diff) | |
| download | vyos-1x-51a17eadc063423a80502462dba0b67cb4fe3496.tar.gz vyos-1x-51a17eadc063423a80502462dba0b67cb4fe3496.zip | |
Merge pull request #4625 from fett0/T7639
isis: T7639: set SRv6 locator in ISIS
Diffstat (limited to 'smoketest/scripts/cli')
| -rwxr-xr-x | smoketest/scripts/cli/test_protocols_isis.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_isis.py b/smoketest/scripts/cli/test_protocols_isis.py index 18f475fa9..54f4e513b 100755 --- a/smoketest/scripts/cli/test_protocols_isis.py +++ b/smoketest/scripts/cli/test_protocols_isis.py @@ -418,5 +418,25 @@ class TestProtocolsISIS(VyOSUnitTestSHIM.TestCase): self.assertIn(f' net {net}', tmp) self.assertIn(f' topology {topology}', tmp) + def test_isis_11_srv6(self): + locator = "TEST" + interface = 'lo' + + self.cli_set(base_path + ['net', net]) + self.cli_set(base_path + ['interface', interface]) + self.cli_set(base_path + ['segment-routing', 'srv6', 'locator', locator]) + + # Commit main ISIS changes + self.cli_commit() + + # Verify main ISIS changes + tmp = self.getFRRconfig(f'router isis {domain}', endsection='^exit') + self.assertIn(f' net {net}', tmp) + self.assertIn(f' segment-routing srv6', tmp) + self.assertIn(f' locator {locator}', tmp) + + # Commit for isis + self.cli_commit() + if __name__ == '__main__': unittest.main(verbosity=2) |
