summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/chap-secrets.ipoe.j2
diff options
context:
space:
mode:
Diffstat (limited to 'data/templates/accel-ppp/chap-secrets.ipoe.j2')
-rw-r--r--data/templates/accel-ppp/chap-secrets.ipoe.j218
1 files changed, 18 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/chap-secrets.ipoe.j2 b/data/templates/accel-ppp/chap-secrets.ipoe.j2
new file mode 100644
index 000000000..a1430ec22
--- /dev/null
+++ b/data/templates/accel-ppp/chap-secrets.ipoe.j2
@@ -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 %}