From a4922017e8975a3b08348ece5d98ac136128882f Mon Sep 17 00:00:00 2001 From: chirac Date: Mon, 9 Jul 2018 00:36:55 +0200 Subject: [PATCH] Notation cidr pour les ip des switchs --- templates/hp.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/hp.tpl b/templates/hp.tpl index bfc72b7..87a22e7 100644 --- a/templates/hp.tpl +++ b/templates/hp.tpl @@ -53,12 +53,12 @@ vlan {{ id }} untagged {{ vlan["ports_untagged"]|join(',') }} {%- endif %} {%- if switch.subnet.0.vlan_id == id %} - ip address {{ switch.ipv4 }} {{ switch.subnet.0.netmask }} + ip address {{ switch.ipv4 }}/{{ switch.subnet.0.netmask_cidr }} {%- else %} no ip address {%- endif %} {%- if switch.subnet.0.vlan_id == id %} - ipv6 address {{ switch.ipv6 }} {{ switch.subnet6.netmask }} + ipv6 address {{ switch.ipv6 }}/{{ switch.subnet6.netmask_cidr }} {%- else %} no ipv6 enable {%- endif %}