switches: nostp for up*

This commit is contained in:
Astro 2016-11-26 02:42:20 +01:00
parent 9c64bafa57
commit 88710eb24e
2 changed files with 14 additions and 0 deletions

View File

@ -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'

View File

@ -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 }}# "