summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-11-30 09:01:05 +0100
committerChristian Poessinger <christian@poessinger.com>2020-02-23 14:36:56 +0100
commit858deb599c5fc207d979e9dadf423a17a9c3a2a7 (patch)
treed2db2b9f960ebc55f296a140c297cc86d50beb81 /src/conf_mode
parent38f31c805d7c79df7405a7b65d6775a4d762eb90 (diff)
downloadvyos-1x-858deb599c5fc207d979e9dadf423a17a9c3a2a7.tar.gz
vyos-1x-858deb599c5fc207d979e9dadf423a17a9c3a2a7.zip
pppoe: T1318: "link" option is mandatory
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-pppoe.py5
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'])