diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-12-03 15:45:21 +0200 |
---|---|---|
committer | Nataliia Solomko <natalirs1985@gmail.com> | 2024-12-04 11:06:32 +0200 |
commit | a4bf498d77b5cd2db00aae226b10a60d9b1fba23 (patch) | |
tree | d2a64974c975f8bd0cff1dd7188419ea07747e01 /data | |
parent | 29cc3d790fa690356016a7df21ec75b12b84cb3c (diff) | |
download | vyos-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.j2 | 2 |
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 %} |