switches/HP-procurve-2824: enable/disable lacp
This commit is contained in:
parent
d69f6cf4f2
commit
25045fc440
|
@ -63,9 +63,11 @@ expect "(config)# "
|
||||||
{%- set group = group + 1 %}
|
{%- set group = group + 1 %}
|
||||||
|
|
||||||
{%- if conf['mode'] == 'bond' %}
|
{%- if conf['mode'] == 'bond' %}
|
||||||
|
send "interface {{ conf['ports'] }} lacp active\r"
|
||||||
send "trunk {{ conf['ports'] }} trk{{ group }} lacp\r"
|
send "trunk {{ conf['ports'] }} trk{{ group }} lacp\r"
|
||||||
{%- else %}
|
{%- else %}
|
||||||
send "no trunk {{ conf['ports'] }}\r"
|
send "no trunk {{ conf['ports'] }}\r"
|
||||||
|
send "no interface {{ conf['ports'] }} lacp\r"
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
expect "(config)# "
|
expect "(config)# "
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue