switches/linksys-srw2048: do never deconfigure vlans

while not fatal unless mgmt is deconfigured, it causes an outage for a minute.
This commit is contained in:
Astro 2021-09-19 02:17:09 +02:00
parent 58f90872da
commit d5bed4b2dc
1 changed files with 0 additions and 3 deletions

View File

@ -26,9 +26,6 @@ expect "(config)# "
send "vlan database\r"
expect "(config-vlan)# "
{%- for name, vlan in pillar['vlans'].items() %}
{%- if name != 'mgmt' %}
send "no vlan {{ vlan }}\r"
{%- endif %}
send "vlan {{ vlan }}\r"
expect "(config-vlan)#"
{%- endfor %}