Browse Source

switches/linksys-srw2048: do never deconfigure vlans

while not fatal unless mgmt is deconfigured, it causes an outage for a minute.
master
Astro 4 weeks ago
parent
commit
d5bed4b2dc
  1. 3
      salt/switches/linksys-srw2048.expect

3
salt/switches/linksys-srw2048.expect

@ -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 %}

Loading…
Cancel
Save