summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-10-19 07:40:13 +0200
committerChristian Poessinger <christian@poessinger.com>2018-10-19 07:40:13 +0200
commite0e3fe5ebaf109717c848e089adf4978c142fa8e (patch)
tree00650291865a8e723b8af30d229cbd68cea0de49
parentddab02cbd638f0fb5db3003284e360b5b1603007 (diff)
downloadvyos-1x-e0e3fe5ebaf109717c848e089adf4978c142fa8e.tar.gz
vyos-1x-e0e3fe5ebaf109717c848e089adf4978c142fa8e.zip
dhcpv6-relay: added missing verify() step for listen and upstream interfaces
-rwxr-xr-xsrc/conf_mode/dhcpv6_relay.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/dhcpv6_relay.py b/src/conf_mode/dhcpv6_relay.py
index 982320d18..c8b3eca6d 100755
--- a/src/conf_mode/dhcpv6_relay.py
+++ b/src/conf_mode/dhcpv6_relay.py
@@ -86,6 +86,9 @@ def verify(relay):
if relay is None:
return None
+ if len(relay['listen_addr']) == 0 or len(relay['upstream_addr']) == 0:
+ raise ConfigError('Must set at least one listen and upstream interface.')
+
return None
def generate(relay):