switches/3com-4200G: fix vlan deconfiguration

This commit is contained in:
Astro 2016-11-29 18:10:08 +01:00
parent 7b7530764d
commit 9530840265
1 changed files with 1 additions and 1 deletions

View File

@ -77,10 +77,10 @@ expect "]"
# Set dummy default vlan
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 "]"
{%- for vlan_name in conf['vlans'] %}
send "port trunk permit vlan {{ pillar['vlans'][vlan_name] }}\r"
expect "]"
{%- endfor %}