diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-08-15 17:07:14 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-08-15 17:07:14 +0200 |
commit | b8aca00fc5454f3afdb690ca7eb30e49fac48848 (patch) | |
tree | d5f01c1f5e65bc712cecaae62c751169efebf268 /src/conf_mode/service_pppoe-server.py | |
parent | fd18b6957aa3cd8f378619ae694970bdf85a205b (diff) | |
download | vyos-1x-b8aca00fc5454f3afdb690ca7eb30e49fac48848.tar.gz vyos-1x-b8aca00fc5454f3afdb690ca7eb30e49fac48848.zip |
pppoe-server: T2796: at least one server interface must be defined
Add missing verify() check that at least one interface must be defined to
listen to PPPoE data.
Diffstat (limited to 'src/conf_mode/service_pppoe-server.py')
-rwxr-xr-x | src/conf_mode/service_pppoe-server.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py index a8357f653..39d34a7e2 100755 --- a/src/conf_mode/service_pppoe-server.py +++ b/src/conf_mode/service_pppoe-server.py @@ -421,6 +421,9 @@ def verify(pppoe): if len(pppoe['dnsv6']) > 3: raise ConfigError('Not more then three IPv6 DNS name-servers can be configured') + if not pppoe['interfaces']: + raise ConfigError('At least one listen interface must be defined!') + # local ippool and gateway settings config checks if pppoe['client_ip_subnets'] or pppoe['client_ip_pool']: if not pppoe['ppp_gw']: |