summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/config_extended_scripts.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/accel-ppp/config_extended_scripts.j2')
-rw-r--r--data/templates/accel-ppp/config_extended_scripts.j29
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 0000000..ded0a0a
--- /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