diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-11-07 11:00:08 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-11-07 11:00:08 +0000 |
commit | ffda9068b22e2d8a6841fcd8cdf62bbe266ea02c (patch) | |
tree | 67bd32b8e31d1b7128911d302127bbb115ec7385 /src/conf_mode | |
parent | b7ff6f81e2bda8ff31436eced2be5be112bbd23f (diff) | |
download | vyos-1x-ffda9068b22e2d8a6841fcd8cdf62bbe266ea02c.tar.gz vyos-1x-ffda9068b22e2d8a6841fcd8cdf62bbe266ea02c.zip |
T5720: Fix for PPPoE-server adding new interfaces
If we add a new interface for PPPoe-server we MUST restart the
`accel-ppp@pppoe.service` as `reload` is not implemented for
accel-ppp daemon
Otherwise we have listen interface in the /run/accel-pppd/pppoe.conf
which does not work
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/service_pppoe-server.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/conf_mode/service_pppoe-server.py b/src/conf_mode/service_pppoe-server.py index aace267a7..87660c127 100755 --- a/src/conf_mode/service_pppoe-server.py +++ b/src/conf_mode/service_pppoe-server.py @@ -48,9 +48,12 @@ def get_config(config=None): # reload-or-restart does not implemented in accel-ppp # use this workaround until it will be implemented # https://phabricator.accel-ppp.org/T3 - if is_node_changed(conf, base + ['client-ip-pool']) or is_node_changed( - conf, base + ['client-ipv6-pool']): + conditions = [is_node_changed(conf, base + ['client-ip-pool']), + is_node_changed(conf, base + ['client-ipv6-pool']), + is_node_changed(conf, base + ['interface'])] + if any(conditions): pppoe.update({'restart_required': {}}) + return pppoe def verify(pppoe): |