diff --git a/salt-pillar/switches/init.sls b/salt-pillar/switches/init.sls index 83cf9e1..d76d140 100644 --- a/salt-pillar/switches/init.sls +++ b/salt-pillar/switches/init.sls @@ -257,27 +257,35 @@ switches: up1: mode: access ports: '1' + nostp: true up2: mode: access ports: '2' + nostp: true up3: mode: access ports: '3' + nostp: true up4: mode: access ports: '4' + nostp: true up5: mode: access ports: '5' + nostp: true up6: mode: access ports: '6' + nostp: true up7: mode: access ports: '7' + nostp: true up8: mode: access ports: '8' + nostp: true iso1: mode: access ports: '9' diff --git a/salt/switches/HP-procurve-2824.expect b/salt/switches/HP-procurve-2824.expect index b19e39a..68c5850 100644 --- a/salt/switches/HP-procurve-2824.expect +++ b/salt/switches/HP-procurve-2824.expect @@ -76,6 +76,12 @@ send "vlan {{ pillar['vlans'][name] }} untagged {{ conf['ports'] }}\r" expect "(config)# " {%- endif %} + +{%- if conf['nostp'] %} +send "spanning-tree {{ conf['ports'] }} bpdu-filter\r" +expect "(config)# " +{%- endif %} + {%- endfor %} send "exit\r" expect "{{ hostname }}# "