switches/TL-SG3210: fix command order

This commit is contained in:
Astro 2021-02-03 00:33:30 +01:00
parent 3f95057121
commit 9add65fa40
1 changed files with 4 additions and 2 deletions

View File

@ -90,6 +90,8 @@ expect "(config-if-range)#"
{%- endfor %}
send "switchport trunk allowed vlan {{ ','.join(vlan_ids) }}\r"
expect "(config-if-range)#"
send "exit\r"
expect "(config)#"
{%- elif conf['mode'] == 'access' %}
{%- for port in conf['ports'] %}
send "interface range gigabitEthernet 1/0/{{ port }}\r"
@ -98,11 +100,11 @@ send "switchport mode access\r"
expect "(config-if-range)#"
send "switchport access vlan {{ pillar['vlans'][name] }}\r"
expect "(config-if-range)#"
{%- endfor %}
{%- endif %}
send "exit\r"
expect "(config)#"
{%- endfor %}
{%- endif %}
{%- endfor %}
send "exit\r"
expect "#"