summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/chap-secrets.ipoe.j2
blob: 43083e22e95c2b8ab07a74ba86410960c9fdf615 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# username  server  password  acceptable local IP addresses   shaper
{% if authentication.interface is vyos_defined %}
{%     for iface, iface_config in authentication.interface.items() %}
{%         if iface_config.mac is vyos_defined %}
{%             for mac, mac_config in iface_config.mac.items() %}
{%                 if mac_config.vlan is vyos_defined %}
{%                     set iface = iface ~ '.' ~ mac_config.vlan %}
{%                 endif %}
{{ "%-11s" | format(iface) }} * {{ mac | lower }} * {{ mac_config.rate_limit.download ~ '/' ~ mac_config.rate_limit.upload if mac_config.rate_limit.download is vyos_defined and mac_config.rate_limit.upload is vyos_defined }}
{%             endfor %}
{%         endif %}
{%     endfor %}
{% endif %}