diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-18 21:49:02 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-18 21:49:02 +0200 |
commit | 6da4b10139787dc1096c7a0d4b0cae5120caf870 (patch) | |
tree | 93c3331f21190c9799a6d04b01eb605159da400a /data/templates/accel-ppp/chap-secrets.ipoe.tmpl | |
parent | efa172449e05328f8bea8d6879d5d38386b72e95 (diff) | |
download | vyos-1x-6da4b10139787dc1096c7a0d4b0cae5120caf870.tar.gz vyos-1x-6da4b10139787dc1096c7a0d4b0cae5120caf870.zip |
ipoe-server: T2324: move template files to common accel-ppp template directory
Diffstat (limited to 'data/templates/accel-ppp/chap-secrets.ipoe.tmpl')
-rw-r--r-- | data/templates/accel-ppp/chap-secrets.ipoe.tmpl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/chap-secrets.ipoe.tmpl b/data/templates/accel-ppp/chap-secrets.ipoe.tmpl new file mode 100644 index 000000000..a7d899354 --- /dev/null +++ b/data/templates/accel-ppp/chap-secrets.ipoe.tmpl @@ -0,0 +1,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 -%} |