Fix re2o 2.8+ Compat

This commit is contained in:
chirac 2020-08-04 23:27:34 +02:00 committed by root
parent 8defc92ecc
commit cd89d28a60

View file

@ -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 %}