switches/HP-procurve-2824: enable/disable lacp

This commit is contained in:
Astro 2017-01-17 19:42:44 +01:00
parent d69f6cf4f2
commit 25045fc440

View File

@ -63,9 +63,11 @@ expect "(config)# "
{%- set group = group + 1 %}
{%- if conf['mode'] == 'bond' %}
send "interface {{ conf['ports'] }} lacp active\r"
send "trunk {{ conf['ports'] }} trk{{ group }} lacp\r"
{%- else %}
send "no trunk {{ conf['ports'] }}\r"
send "no interface {{ conf['ports'] }} lacp\r"
{%- endif %}
expect "(config)# "