From 7b7530764d1a08ab3da00b7726e73717953f5cb4 Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 29 Nov 2016 17:41:13 +0100 Subject: [PATCH] switches: deconfigure all VLANs on 3com-4200G --- salt/switches/3com-4200G.expect | 3 +++ 1 file changed, 3 insertions(+) diff --git a/salt/switches/3com-4200G.expect b/salt/switches/3com-4200G.expect index eb56ae3..3f4a54c 100644 --- a/salt/switches/3com-4200G.expect +++ b/salt/switches/3com-4200G.expect @@ -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 %}