switches/HP-procurve-2824: fix bond/trunk tagging

This commit is contained in:
Astro 2017-01-12 18:32:31 +01:00
parent a7f3a4c4c7
commit 2132a4b078
1 changed files with 4 additions and 0 deletions

View File

@ -70,7 +70,11 @@ send "no trunk {{ conf['ports'] }}\r"
expect "(config)# "
{%- for vlan_name in conf['vlans'] %}
{%- if conf['mode'] == 'bond' %}
send "vlan {{ pillar['vlans'][vlan_name] }} tagged trk{{ group }}\r"
{%- else %}
send "vlan {{ pillar['vlans'][vlan_name] }} tagged {{ conf['ports'] }}\r"
{%- endif %}
expect "(config)# "
{%- endfor %}