|
|
@ -53,12 +53,12 @@ vlan {{ id }}
|
|
|
|
untagged {{ vlan["ports_untagged"]|join(',') }}
|
|
|
|
untagged {{ vlan["ports_untagged"]|join(',') }}
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if switch.subnet.0.vlan_id == id %}
|
|
|
|
{%- 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 %}
|
|
|
|
{%- else %}
|
|
|
|
no ip address
|
|
|
|
no ip address
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
|
|
|
{%- if switch.subnet.0.vlan_id == id %}
|
|
|
|
{%- if switch.subnet.0.vlan_id == id %}
|
|
|
|
ipv6 address {{ switch.ipv6 }} {{ switch.subnet6.netmask }}
|
|
|
|
ipv6 address {{ switch.ipv6 }}/{{ switch.subnet6.netmask_cidr }}
|
|
|
|
{%- else %}
|
|
|
|
{%- else %}
|
|
|
|
no ipv6 enable
|
|
|
|
no ipv6 enable
|
|
|
|
{%- endif %}
|
|
|
|
{%- endif %}
|
|
|
|