blob: 5e35d57751d2fbd1b0110c94386f422e118d1b94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# username server password acceptable local IP addresses shaper
{% for aifc in auth['auth_if'] -%}
{% for mac in auth['auth_if'][aifc] -%}
{% if (auth['auth_if'][aifc][mac]['up']) and (auth['auth_if'][aifc][mac]['down']) -%}
{% if auth['auth_if'][aifc][mac]['vlan'] -%}
{{aifc}}.{{auth['auth_if'][aifc][mac]['vlan']}} * {{mac.lower()}} * {{auth['auth_if'][aifc][mac]['down']}}/{{auth['auth_if'][aifc][mac]['up']}}
{% else -%}
{{aifc}} * {{mac.lower()}} * {{auth['auth_if'][aifc][mac]['down']}}/{{auth['auth_if'][aifc][mac]['up']}}
{% endif -%}
{% else -%}
{% if auth['auth_if'][aifc][mac]['vlan'] %}
{{aifc}}.{{auth['auth_if'][aifc][mac]['vlan']}} * {{mac.lower()}} *
{% else -%}
{{aifc}} * {{mac.lower()}} *
{% endif -%}
{% endif -%}
{% endfor -%}
{% endfor -%}
|