From cd89d28a6088f11631ed680a488f9541fc9b7d33 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Tue, 4 Aug 2020 23:27:34 +0200 Subject: [PATCH] Fix re2o 2.8+ Compat --- templates/hp.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/hp.tpl b/templates/hp.tpl index edf146f..394874b 100644 --- a/templates/hp.tpl +++ b/templates/hp.tpl @@ -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 %}