summaryrefslogtreecommitdiff
path: root/smoketest
diff options
context:
space:
mode:
Diffstat (limited to 'smoketest')
-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: