From 95308402657c8afcb0708886a28574e37881b305 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 29 Nov 2016 18:10:08 +0100 Subject: [PATCH] switches/3com-4200G: fix vlan deconfiguration --- salt/switches/3com-4200G.expect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/switches/3com-4200G.expect b/salt/switches/3com-4200G.expect index 3f4a54c..1b54883 100644 --- a/salt/switches/3com-4200G.expect +++ b/salt/switches/3com-4200G.expect @@ -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 %}