switches/TL-SG3210: fix command order
This commit is contained in:
parent
3f95057121
commit
9add65fa40
|
@ -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 "#"
|
||||
|
|
Loading…
Reference in New Issue