From c2bfd17143e6b6d7d5daf99644f27e0e41493aec Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Thu, 2 Mar 2017 02:32:36 +0100 Subject: [PATCH] =?UTF-8?q?Jeder=20access=20Port=20ist=20default=20in=20vl?= =?UTF-8?q?an=201,=20welches=20wir=20auch=20als=20mgmt=20belassen=20haben.?= =?UTF-8?q?=20Falls=20ein=20Port=20als=20mgmt=20konfiguriert=20werden=20so?= =?UTF-8?q?ll,=20muss=20das=20eventuell=20vorhandene=20vlan=20gel=C3=B6sch?= =?UTF-8?q?t=20werden.=20Explizit=20vlan=201=20zu=20setzen=20geht=20nicht.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- salt/switches/3com-4200G.expect | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/salt/switches/3com-4200G.expect b/salt/switches/3com-4200G.expect index f1e22c1..19473dc 100644 --- a/salt/switches/3com-4200G.expect +++ b/salt/switches/3com-4200G.expect @@ -95,8 +95,13 @@ send "undo port link-aggregation group\r" expect "]" send "port link-type access\r" expect "]" +{%- if name == 'mgmt' %} +send "undo port access vlan\r" +expect "]" +{%- else %} send "port access vlan {{ pillar['vlans'][name] }}\r" expect "]" +{%- endif %} send "quit\r" expect "{{ hostname }}]" {%- endfor %}