summaryrefslogtreecommitdiff
path: root/src/conf_mode/ipoe_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/ipoe_server.py')
-rwxr-xr-xsrc/conf_mode/ipoe_server.py3
1 files changed, 3 insertions, 0 deletions
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")