summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-07 17:41:03 +0100
committerGitHub <noreply@github.com>2023-11-07 17:41:03 +0100
commita37dca329767ed5e61bb1df4b80d44fde967d179 (patch)
treea4b8e831f40f75261458612ea9dad01239963b1e
parent11ca0a12272a704ce5f04c0ff4c746f755a380f1 (diff)
parentf216969a46f720bd7b74e7c1fbb88f88b4434a21 (diff)
downloadvyos-1x-a37dca329767ed5e61bb1df4b80d44fde967d179.tar.gz
vyos-1x-a37dca329767ed5e61bb1df4b80d44fde967d179.zip
Merge pull request #2454 from vyos/mergify/bp/sagitta/pr-2453
T5720: Fix for PPPoE-server adding new interfaces (backport #2453)
-rwxr-xr-xsrc/conf_mode/service_pppoe-server.py7
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):