diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-05 22:47:43 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-05 22:47:43 +0200 |
commit | ebb54c107e308bca73275cf0e5fc5075f800526e (patch) | |
tree | a1cb8118f47246573c23261240a070f0220448f9 /data/templates/pppoe-server/chap-secrets.tmpl | |
parent | 59cf7f59ac6936bc64394e55bf0870ec73c7bbd7 (diff) | |
download | vyos-1x-ebb54c107e308bca73275cf0e5fc5075f800526e.tar.gz vyos-1x-ebb54c107e308bca73275cf0e5fc5075f800526e.zip |
pppoe-server: T2230: move inlined templates to dedicated files
Diffstat (limited to 'data/templates/pppoe-server/chap-secrets.tmpl')
-rw-r--r-- | data/templates/pppoe-server/chap-secrets.tmpl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/data/templates/pppoe-server/chap-secrets.tmpl b/data/templates/pppoe-server/chap-secrets.tmpl new file mode 100644 index 000000000..808debccb --- /dev/null +++ b/data/templates/pppoe-server/chap-secrets.tmpl @@ -0,0 +1,11 @@ +# username server password acceptable local IP addresses shaper +{% for user in authentication['local-users'] %} +{% if authentication['local-users'][user]['state'] == 'enabled' %} +{% if (authentication['local-users'][user]['upload']) and (authentication['local-users'][user]['download']) %} +{{user}}\t*\t{{authentication['local-users'][user]['passwd']}}\t{{authentication['local-users'][user]['ip']}}\t\ +{{authentication['local-users'][user]['download']}}/{{authentication['local-users'][user]['upload']}} +{% else %} +{{user}}\t*\t{{authentication['local-users'][user]['passwd']}}\t{{authentication['local-users'][user]['ip']}} +{% endif %} +{% endif %} +{% endfor %} |