diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-02-23 14:02:09 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-23 14:36:56 +0100 |
commit | 9621e4b7552df43876f153db1d1156ad8c4ba72c (patch) | |
tree | 314508ae5e9222e9daf75ba744d114fc76b09b5b /src/conf_mode | |
parent | 2fec7394434f8daace485e97a7287cc8233fa178 (diff) | |
download | vyos-1x-9621e4b7552df43876f153db1d1156ad8c4ba72c.tar.gz vyos-1x-9621e4b7552df43876f153db1d1156ad8c4ba72c.zip |
pppoe: T2055: do not try to start a deleted dialer interface
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-pppoe.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-pppoe.py b/src/conf_mode/interfaces-pppoe.py index 4ca7f3ecb..245f5a4b0 100755 --- a/src/conf_mode/interfaces-pppoe.py +++ b/src/conf_mode/interfaces-pppoe.py @@ -231,6 +231,10 @@ def generate(pppoe): return None def apply(pppoe): + if pppoe['deleted']: + # bail out early + return None + if not pppoe['disable']: # Dial PPPoE connection cmd = 'systemctl start ppp@{}.service'.format(pppoe['intf']) |