Fix re2o 2.8+ Compat
This commit is contained in:
parent
8defc92ecc
commit
cd89d28a60
1 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ vlan {{ id }}
|
|||
{%- endif %}
|
||||
{%- if vlan.ipv4 %}
|
||||
{%- for ipv4, subnet in vlan.ipv4.items() %}
|
||||
ip address {{ ipv4 }}/{{ subnet.0.netmask_cidr }}
|
||||
ip address {{ ipv4 }}/{{ subnet.netmask_cidr }}
|
||||
{%- endfor %}
|
||||
{%- else %}
|
||||
no ip address
|
||||
|
@ -95,7 +95,7 @@ aaa authentication ssh enable public-key none
|
|||
ip ssh
|
||||
ip ssh filetransfer
|
||||
{%- if settings.switchs_management_utils.subnet %}
|
||||
ip authorized-managers {{ settings.switchs_management_utils.subnet.0.network }} {{ settings.switchs_management_utils.subnet.0.netmask }} access manager
|
||||
ip authorized-managers {{ settings.switchs_management_utils.subnet.network }} {{ settings.switchs_management_utils.subnet.netmask }} access manager
|
||||
{%- endif %}
|
||||
{%- for ipv4 in settings.switchs_management_utils.dns_recursive_servers.ipv4 %}
|
||||
ip dns server-address priority {{ loop.index }} {{ ipv4 }}
|
||||
|
@ -111,7 +111,7 @@ loop-protect {{ additionals.loop_protected|join(',') }}
|
|||
{%- endif %}
|
||||
;--- Serveurs Radius
|
||||
radius-server dead-time 2
|
||||
{%- for ipv4 in settings.switchs_management_utils.radius_servers.ipv4 %}
|
||||
{%- for ipv4 in switch.get_radius_servers.ipv4 %}
|
||||
radius-server host {{ ipv4 }} key "{{ switch.get_radius_key_value }}"
|
||||
radius-server host {{ ipv4 }} dyn-authorization
|
||||
{%- endfor %}
|
||||
|
|
Loading…
Reference in a new issue