diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-12-16 11:42:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-16 11:42:47 +0000 |
commit | d08a51ab1011f926f897e288d6d8946a8ff72674 (patch) | |
tree | 853ff9b3f56d9a58b17e0a1ab9a93337783b9ffe /data | |
parent | 221b384ff0096f07b96f13d1a5433e0b49c15846 (diff) | |
parent | a4bf498d77b5cd2db00aae226b10a60d9b1fba23 (diff) | |
download | vyos-1x-d08a51ab1011f926f897e288d6d8946a8ff72674.tar.gz vyos-1x-d08a51ab1011f926f897e288d6d8946a8ff72674.zip |
Merge pull request #4219 from natali-rs1985/T6628
ipoe_server: T6628: Add option to assign static IP address to end users with local auth
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 %} |