diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-02-15 15:09:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 15:09:07 +0000 |
commit | 2bc62337b3a1474bba3e1027292ca8d0e443b297 (patch) | |
tree | 32c69c3091590069626446611174c3f61d00b7d1 /data/templates/accel-ppp/config_extended_scripts.j2 | |
parent | 71497e76c9cf0724581505f50e8b78b6e1c47316 (diff) | |
parent | ac6a16f6c5ad7700789759e1ec093236c2e182a2 (diff) | |
download | vyos-1x-2bc62337b3a1474bba3e1027292ca8d0e443b297.tar.gz vyos-1x-2bc62337b3a1474bba3e1027292ca8d0e443b297.zip |
Merge pull request #3004 from aapostoliuk/T6029-circinus
T6029: Rewritten Accel-PPP services to an identical feature set
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 |