summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-24 20:50:27 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-24 20:50:27 +0200
commitcb45b4bf9e546b70d6a78fb60d6691ce825af58c (patch)
tree98fae1e150d7fb7d9c81e8380b414f27c81aaed9 /smoketest
parent714de9764012409921736787e664b030a33907b9 (diff)
downloadvyos-1x-cb45b4bf9e546b70d6a78fb60d6691ce825af58c.tar.gz
vyos-1x-cb45b4bf9e546b70d6a78fb60d6691ce825af58c.zip
smoketest: isis: test verify() - net and interface must be set
Diffstat (limited to 'smoketest')
-rwxr-xr-xsmoketest/scripts/cli/test_protocols_isis.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_protocols_isis.py b/smoketest/scripts/cli/test_protocols_isis.py
index a5150178a..02521f040 100755
--- a/smoketest/scripts/cli/test_protocols_isis.py
+++ b/smoketest/scripts/cli/test_protocols_isis.py
@@ -58,6 +58,12 @@ class TestProtocolsISIS(VyOSUnitTestSHIM.TestCase):
self.cli_set(['policy', 'route-map', route_map, 'rule', rule, 'action', 'permit'])
self.cli_set(['policy', 'route-map', route_map, 'rule', rule, 'match', 'ip', 'address', 'prefix-list', prefix_list])
+ self.cli_set(base_path)
+
+ # verify() - net id and interface are mandatory
+ with self.assertRaises(ConfigSessionError):
+ self.cli_commit()
+
self.isis_base_config()
self.cli_set(base_path + ['redistribute', 'ipv4', 'connected', 'level-2', 'route-map', route_map])