diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-11-30 09:01:05 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-23 14:36:56 +0100 |
commit | 858deb599c5fc207d979e9dadf423a17a9c3a2a7 (patch) | |
tree | d2db2b9f960ebc55f296a140c297cc86d50beb81 /src/conf_mode/interfaces-pppoe.py | |
parent | 38f31c805d7c79df7405a7b65d6775a4d762eb90 (diff) | |
download | vyos-1x-858deb599c5fc207d979e9dadf423a17a9c3a2a7.tar.gz vyos-1x-858deb599c5fc207d979e9dadf423a17a9c3a2a7.zip |
pppoe: T1318: "link" option is mandatory
Diffstat (limited to 'src/conf_mode/interfaces-pppoe.py')
-rwxr-xr-x | src/conf_mode/interfaces-pppoe.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py index eb64d094b..c7eca5056 100755 --- a/src/conf_mode/interfaces-pppoe.py +++ b/src/conf_mode/interfaces-pppoe.py @@ -210,14 +210,15 @@ def get_config(): return pppoe - def verify(pppoe): if pppoe['deleted']: # bail out early return None - return None + if not pppoe['link']: + raise ConfigError('Physical link interface for PPPoE missing') + return None def generate(pppoe): config_file_pppoe = '/etc/ppp/peers/{}'.format(pppoe['intf']) |