blob: dd85160c0d699470fd90b0af15827bc9d2ee794b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# username server password acceptable local IP addresses shaper
{% if authentication.interface is vyos_defined %}
{% for iface, iface_config in authentication.interface.items() %}
{% if iface_config.mac is vyos_defined %}
{% for mac, mac_config in iface_config.mac.items() %}
{% if mac_config.vlan is vyos_defined %}
{% set iface = iface ~ '.' ~ mac_config.vlan %}
{% endif %}
{{ "%-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 %}
{% endif %}
|