diff options
author | hagbard <vyosdev@derith.de> | 2019-09-26 11:24:43 -0700 |
---|---|---|
committer | hagbard <vyosdev@derith.de> | 2019-09-26 11:24:43 -0700 |
commit | 9b55f7c7b9ecc49e6efe075ad24a54baff719e8e (patch) | |
tree | 372fb2b164ca322e399760006bd437574aaa6f0c /src/conf_mode | |
parent | 0c6faf26823fb984b3e0a77ee014e20661163e44 (diff) | |
download | vyos-1x-9b55f7c7b9ecc49e6efe075ad24a54baff719e8e.tar.gz vyos-1x-9b55f7c7b9ecc49e6efe075ad24a54baff719e8e.zip |
ipoe-server: T1692 - ipoe-server verify function error
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/ipoe_server.py | 3 |
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") |