summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/chap-secrets.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-05-01 21:11:09 +0200
committerChristian Poessinger <christian@poessinger.com>2022-05-01 21:11:09 +0200
commitd956fda57f3288d6b23af90eab205091a0797e1a (patch)
treecb6e59a1effb3075c96e9f09ed7db9dd3402b637 /data/templates/accel-ppp/chap-secrets.j2
parent5ec208ed9ee060f7c1a7707dc2369c83657196e8 (diff)
downloadvyos-1x-d956fda57f3288d6b23af90eab205091a0797e1a.tar.gz
vyos-1x-d956fda57f3288d6b23af90eab205091a0797e1a.zip
accel-ppp: T4353: fix Jinja2 linting errors
Diffstat (limited to 'data/templates/accel-ppp/chap-secrets.j2')
-rw-r--r--data/templates/accel-ppp/chap-secrets.j210
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/chap-secrets.j2 b/data/templates/accel-ppp/chap-secrets.j2
new file mode 100644
index 000000000..cc3ddc28f
--- /dev/null
+++ b/data/templates/accel-ppp/chap-secrets.j2
@@ -0,0 +1,10 @@
+# username server password acceptable local IP addresses shaper
+{% for user in local_users %}
+{% if user.state == 'enabled' %}
+{% if user.upload and user.download %}
+{{ "%-12s" | format(user.name) }} * {{ "%-16s" | format(user.password) }} {{ "%-16s" | format(user.ip) }} {{ user.download }}/{{ user.upload }}
+{% else %}
+{{ "%-12s" | format(user.name) }} * {{ "%-16s" | format(user.password) }} {{ "%-16s" | format(user.ip) }}
+{% endif %}
+{% endif %}
+{% endfor %}