Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Feature: stp

Terencio Agozzino edited this page Jun 1, 2018 · 3 revisions

The stp feature allows you to configure the Spanning Tree settings for a switch.

STP settings

stp:
  # Sets STP mode
  # Available values:
  #   pvst: Per-Vlan spanning tree mode
  #   rapid-pvst: Per-Vlan rapid spanning tree mode
  mode: rapid-pvst
  # Enables portfast by default on all access ports
  portfast: True
  # Configures VLANs priority of this switch for the spanning tree
  vlans:
    - vlan: 1
      # Available values:
      #   primary: Sets the switch as primary root
      #   secondary: Sets the switch as secondary root
      #   <0-61440 (in increments of 4096)>
      priority: primary
    - vlan: 10
      priority: 4096
  interfaces:
    - range: Fa0/1-Fa0/3
      # Configures BPDUs for this interface
      # Available values:
      #   False: Disables BPDU guard
      #   True: Enables BPDU guard
      bpduguard: True
      # Enables root guard
      guard: True
      # Specifies the link type for STP to use
      # Available values:
      #   p2p: Considers the interface as point-to-point
      #   shared: Considers the interface as shared
      link_type: p2p
      # Configures portfast to move directly to forwarding on link up
      # Available values:
      #   False: Disables portfast
      #   True: Enables portfast
      #   Trunk: Enables portfast even in trunk mode
      portfast: True
      # Changes spanning tree port priority
      vlans:
        - vlan: 1
          # Available values:
          #   <0-240 (in increments of 16)>
          priority: 128
        - vlan: 9-11
          priority: 144
    - range: Fa0/4-Fa0/6
      bpduguard: False
      portfast: True
      link_type: shared
Clone this wiki locally