summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/chap-secrets.ipoe.tmpl
blob: a7d8993548b8554cfcac876ce2c402b48ff07c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# username  server  password  acceptable local IP addresses   shaper
{% for interface in auth_interfaces -%}
{% for mac in interface.mac -%}
{% if mac.rate_upload and mac.rate_download -%}
{% if mac.vlan_id -%}
{{ interface.name }}.{{ mac.vlan_id }} * {{ mac.address | lower }} * {{ mac.rate_download }}/{{ mac.rate_upload }}
{% else -%}
{{ interface.name }} * {{ mac.address | lower }}  * {{ mac.rate_download }}/{{ mac.rate_upload }}
{% endif -%}
{% else -%}
{% if mac.vlan_id -%}
{{ interface.name }}.{{ mac.vlan_id }} * {{ mac.address | lower }} *
{% else -%}
{{ interface.name }} * {{ mac.address | lower }}  *
{% endif -%}
{% endif -%}
{% endfor -%}
{% endfor -%}