switches: fix 3com bonding

This commit is contained in:
Astro 2017-02-09 01:59:50 +01:00
parent beedab8bb3
commit c2ece5fd83
2 changed files with 2 additions and 9 deletions

View File

@ -308,7 +308,6 @@ cpe:
=MtC9
-----END PGP MESSAGE-----
ap8:
firstboot: True
password: |
-----BEGIN PGP MESSAGE-----

View File

@ -63,15 +63,9 @@ expect "{{ hostname }}]"
send "interface {{ port }}\r"
expect "]"
{%- if conf['mode'] == 'bond' %}
send "lacp enable\r"
send "undo lacp enable\rundo port link-aggregation group\rport link-aggregation group {{ group }}\rlacp enable\r"
{%- else %}
send "undo lacp enable\r"
{%- endif %}
expect "]"
{%- if conf['mode'] == 'bond' %}
send "undo port link-aggregation group\rport link-aggregation group {{ group }}\r"
{%- else %}
send "undo port link-aggregation group\r"
send "undo lacp enable\rundo port link-aggregation group\r"
{%- endif %}
expect "]"
{%- if conf.get('vlans') %}