From e0e3fe5ebaf109717c848e089adf4978c142fa8e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 19 Oct 2018 07:40:13 +0200 Subject: dhcpv6-relay: added missing verify() step for listen and upstream interfaces --- src/conf_mode/dhcpv6_relay.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conf_mode') 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): -- cgit v1.2.3