summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2024-12-03 15:45:21 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2024-12-04 11:06:32 +0200
commita4bf498d77b5cd2db00aae226b10a60d9b1fba23 (patch)
treed2a64974c975f8bd0cff1dd7188419ea07747e01 /data
parent29cc3d790fa690356016a7df21ec75b12b84cb3c (diff)
downloadvyos-1x-a4bf498d77b5cd2db00aae226b10a60d9b1fba23.tar.gz
vyos-1x-a4bf498d77b5cd2db00aae226b10a60d9b1fba23.zip
ipoe_server: T6628: Add option to assign static IP address to end users
Diffstat (limited to 'data')
-rw-r--r--data/templates/accel-ppp/chap-secrets.ipoe.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/chap-secrets.ipoe.j2 b/data/templates/accel-ppp/chap-secrets.ipoe.j2
index 43083e22e..dd85160c0 100644
--- a/data/templates/accel-ppp/chap-secrets.ipoe.j2
+++ b/data/templates/accel-ppp/chap-secrets.ipoe.j2
@@ -6,7 +6,7 @@
{% 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 }}
+{{ "%-11s" | format(iface) }} * {{ mac | lower }} {{ mac_config.static_ip if mac_config.static_ip is vyos_defined else '*' }} {{ 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 %}