diff options
author | Christian Breunig <christian@breunig.cc> | 2024-02-15 16:18:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 16:18:29 +0100 |
commit | eb079e4a49150934dec082861176f5a5213c1206 (patch) | |
tree | 4d74c32d40d8d25522aeb54600a154517df41c53 /data/templates/accel-ppp/config_extended_scripts.j2 | |
parent | 697ce8c51c2ae9667a699b3d95e0ffa6b1984328 (diff) | |
parent | 8eec0b5b062b5f98a865949ac0f2a49d61b81199 (diff) | |
download | vyos-1x-eb079e4a49150934dec082861176f5a5213c1206.tar.gz vyos-1x-eb079e4a49150934dec082861176f5a5213c1206.zip |
Merge pull request #3013 from vyos/mergify/bp/sagitta/pr-3004
T6029: Rewritten Accel-PPP services to an identical feature set (backport #3004)
Diffstat (limited to 'data/templates/accel-ppp/config_extended_scripts.j2')
-rw-r--r-- | data/templates/accel-ppp/config_extended_scripts.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/config_extended_scripts.j2 b/data/templates/accel-ppp/config_extended_scripts.j2 new file mode 100644 index 000000000..ded0a0a39 --- /dev/null +++ b/data/templates/accel-ppp/config_extended_scripts.j2 @@ -0,0 +1,9 @@ +{% if extended_scripts is vyos_defined %} +[pppd-compat] +verbose=1 +radattr-prefix=/run/accel-pppd/radattr +{% set script_name = {'on_up': 'ip-up', 'on_down': 'ip-down', 'on_change':'ip-change', 'on_pre_up':'ip-pre-up'} %} +{% for script in extended_scripts %} +{{ script_name[script] }}={{ extended_scripts[script] }} +{% endfor %} +{% endif %}
\ No newline at end of file |