diff --git a/salt/switches/HP-procurve-2824.expect b/salt/switches/HP-procurve-2824.expect index 38f09c6..0752997 100644 --- a/salt/switches/HP-procurve-2824.expect +++ b/salt/switches/HP-procurve-2824.expect @@ -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 %}