diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-10-19 07:40:13 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2018-10-19 07:40:13 +0200 |
commit | e0e3fe5ebaf109717c848e089adf4978c142fa8e (patch) | |
tree | 00650291865a8e723b8af30d229cbd68cea0de49 /src/conf_mode/dhcpv6_relay.py | |
parent | ddab02cbd638f0fb5db3003284e360b5b1603007 (diff) | |
download | vyos-1x-e0e3fe5ebaf109717c848e089adf4978c142fa8e.tar.gz vyos-1x-e0e3fe5ebaf109717c848e089adf4978c142fa8e.zip |
dhcpv6-relay: added missing verify() step for listen and upstream interfaces
Diffstat (limited to 'src/conf_mode/dhcpv6_relay.py')
-rwxr-xr-x | src/conf_mode/dhcpv6_relay.py | 3 |
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): |