summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/chap-secrets.config_dict.tmpl
blob: d4e8bb2aa2c9b3bdf9917ba0ae8d470947b06be7 (plain)
1
2
3
4
5
6
7
8
9
10
# username  server  password  acceptable local IP addresses   shaper
{% if authentication.local_users.username is vyos_defined %}
{%   for user, user_config in authentication.local_users.username.items() if user_config.disabled is not vyos_defined %}
{%     if user_config.rate_limit is vyos_defined %}
{{ "%-12s" | format(user) }} * {{ "%-16s" | format(user_config.password) }} {{ "%-16s" | format(user_config.static_ip) }} {{ user_config.rate_limit.download }}/{{ user_config.rate_limit.upload }}
{%     else %}
{{ "%-12s" | format(user) }} * {{ "%-16s" | format(user_config.password) }} {{ "%-16s" | format(user_config.static_ip) }}
{%     endif %}
{%   endfor %}
{% endif %}