Commit a4922017 authored by chirac's avatar chirac

Notation cidr pour les ip des switchs

parent 9566a0d6
......@@ -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 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment