diff options
author | Christian Breunig <christian@breunig.cc> | 2023-11-07 16:27:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-07 16:27:06 +0100 |
commit | c7f4a5ac86ef368af7b9da54a85fdd88c0e1b176 (patch) | |
tree | 67bd32b8e31d1b7128911d302127bbb115ec7385 /src/conf_mode/service_pppoe-server.py | |
parent | b7ff6f81e2bda8ff31436eced2be5be112bbd23f (diff) | |
parent | ffda9068b22e2d8a6841fcd8cdf62bbe266ea02c (diff) | |
download | vyos-1x-c7f4a5ac86ef368af7b9da54a85fdd88c0e1b176.tar.gz vyos-1x-c7f4a5ac86ef368af7b9da54a85fdd88c0e1b176.zip |
Merge pull request #2453 from sever-sever/T5720
T5720: Fix for PPPoE-server adding new interfaces
Diffstat (limited to 'src/conf_mode/service_pppoe-server.py')
-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): |