summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-pppoe.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/conf_mode/interfaces-pppoe.py')
-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'])