From d956fda57f3288d6b23af90eab205091a0797e1a Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 May 2022 21:11:09 +0200 Subject: accel-ppp: T4353: fix Jinja2 linting errors --- data/templates/accel-ppp/chap-secrets.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 data/templates/accel-ppp/chap-secrets.j2 (limited to 'data/templates/accel-ppp/chap-secrets.j2') 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 %} -- cgit v1.2.3