switches: fix TL-SG3210 bonding

This commit is contained in:
Astro 2016-11-29 00:30:36 +01:00
parent 865e26b720
commit d80943b491
1 changed files with 2 additions and 2 deletions

View File

@ -70,10 +70,10 @@ expect "(config)#"
{%- set group = 0 %}
{%- for name, conf in switch['ports'].items() %}
{%- if conf['mode'] == 'trunk' || conf['mode'] == 'bond' %}
{%- if conf['mode'] == 'trunk' or conf['mode'] == 'bond' %}
send "interface range gigabitEthernet 1/0/{{ conf['ports'] }}\r"
expect "(config-if-range)#"
send "switchport mode {{ conf['mode'] }}\r"
send "switchport mode trunk\r"
expect "(config-if-range)#"
{%- set group = group + 1 %}
send "channel-group {{ group }} mode passive\r"