From 9b55f7c7b9ecc49e6efe075ad24a54baff719e8e Mon Sep 17 00:00:00 2001 From: hagbard Date: Thu, 26 Sep 2019 11:24:43 -0700 Subject: ipoe-server: T1692 - ipoe-server verify function error --- src/conf_mode/ipoe_server.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/conf_mode/ipoe_server.py') diff --git a/src/conf_mode/ipoe_server.py b/src/conf_mode/ipoe_server.py index a60379760..1662e45e6 100755 --- a/src/conf_mode/ipoe_server.py +++ b/src/conf_mode/ipoe_server.py @@ -369,6 +369,9 @@ def verify(c): if c == None or not c: return None + if not c['interfaces']: + raise ConfigError("service ipoe-server interface requires a value") + for intfc in c['interfaces']: if not c['interfaces'][intfc]['range']: raise ConfigError("service ipoe-server interface " + intfc + " client-subnet needs a value") -- cgit v1.2.3