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 %}
|
{%- endif %}
|
||||||
{%- if vlan.ipv4 %}
|
{%- if vlan.ipv4 %}
|
||||||
{%- for ipv4, subnet in vlan.ipv4.items() %}
|
{%- for ipv4, subnet in vlan.ipv4.items() %}
|
||||||
ip address {{ ipv4 }}/{{ subnet.0.netmask_cidr }}
|
ip address {{ ipv4 }}/{{ subnet.netmask_cidr }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
no ip address
|
no ip address
|
||||||
|
@ -95,7 +95,7 @@ aaa authentication ssh enable public-key none
|
||||||
ip ssh
|
ip ssh
|
||||||
ip ssh filetransfer
|
ip ssh filetransfer
|
||||||
{%- if settings.switchs_management_utils.subnet %}
|
{%- 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 %}
|
{%- endif %}
|
||||||
{%- for ipv4 in settings.switchs_management_utils.dns_recursive_servers.ipv4 %}
|
{%- for ipv4 in settings.switchs_management_utils.dns_recursive_servers.ipv4 %}
|
||||||
ip dns server-address priority {{ loop.index }} {{ ipv4 }}
|
ip dns server-address priority {{ loop.index }} {{ ipv4 }}
|
||||||
|
@ -111,7 +111,7 @@ loop-protect {{ additionals.loop_protected|join(',') }}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
;--- Serveurs Radius
|
;--- Serveurs Radius
|
||||||
radius-server dead-time 2
|
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 }} key "{{ switch.get_radius_key_value }}"
|
||||||
radius-server host {{ ipv4 }} dyn-authorization
|
radius-server host {{ ipv4 }} dyn-authorization
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
Loading…
Reference in a new issue