switches: deconfigure all VLANs on 3com-4200G

This commit is contained in:
Astro 2016-11-29 17:41:13 +01:00
parent 568a22b328
commit 7b7530764d
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ expect "]"
send "port trunk pvid vlan 4094\r"
expect "]"
{%- for vlan_name in conf['vlans'] %}
# Deconfigure all but mgmt vlan
send "undo port trunk permit vlan 2 to 4094\r"
expect "]"
send "port trunk permit vlan {{ pillar['vlans'][vlan_name] }}\r"
expect "]"
{%- endfor %}