summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-09-26 11:24:43 -0700
committerhagbard <vyosdev@derith.de>2019-09-26 11:24:43 -0700
commit9b55f7c7b9ecc49e6efe075ad24a54baff719e8e (patch)
tree372fb2b164ca322e399760006bd437574aaa6f0c /src
parent0c6faf26823fb984b3e0a77ee014e20661163e44 (diff)
downloadvyos-1x-9b55f7c7b9ecc49e6efe075ad24a54baff719e8e.tar.gz
vyos-1x-9b55f7c7b9ecc49e6efe075ad24a54baff719e8e.zip
ipoe-server: T1692 - ipoe-server verify function error
Diffstat (limited to 'src')
-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")