summaryrefslogtreecommitdiff
path: root/smoketest/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-11-29 19:48:26 +0100
committerChristian Poessinger <christian@poessinger.com>2020-11-29 19:48:26 +0100
commit4d3acd6e6fb0b5600cc65bb962c99305f10f92c1 (patch)
tree0ee655fae6e9601e934b464d1cb7d67a46a36868 /smoketest/scripts
parent796d52eae6977fab8d8d527b2c675149dfa36c9b (diff)
downloadvyos-1x-4d3acd6e6fb0b5600cc65bb962c99305f10f92c1.tar.gz
vyos-1x-4d3acd6e6fb0b5600cc65bb962c99305f10f92c1.zip
smoketest: dhcpv6-relay: T3095: verify the verify() section
Diffstat (limited to 'smoketest/scripts')
-rwxr-xr-xsmoketest/scripts/cli/test_service_dhcpv6-relay.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/smoketest/scripts/cli/test_service_dhcpv6-relay.py b/smoketest/scripts/cli/test_service_dhcpv6-relay.py
index b0f17acaa..f72cf573b 100755
--- a/smoketest/scripts/cli/test_service_dhcpv6-relay.py
+++ b/smoketest/scripts/cli/test_service_dhcpv6-relay.py
@@ -59,10 +59,20 @@ class TestServiceDHCPv6Relay(unittest.TestCase):
dhcpv6_server = '2001:db8::ffff'
hop_count = '20'
- self.session.set(base_path + ['upstream-interface', upstream_if, 'address', dhcpv6_server])
self.session.set(base_path + ['use-interface-id-option'])
self.session.set(base_path + ['max-hop-count', hop_count])
+ # check validate() - Must set at least one listen and upstream
+ # interface addresses.
+ with self.assertRaises(ConfigSessionError):
+ self.session.commit()
+ self.session.set(base_path + ['upstream-interface', upstream_if, 'address', dhcpv6_server])
+
+ # check validate() - Must set at least one listen and upstream
+ # interface addresses.
+ with self.assertRaises(ConfigSessionError):
+ self.session.commit()
+
# add listener on all ethernet interfaces except the upstream interface
for tmp in interfaces:
if tmp == upstream_if: