openconfig-spanning-tree-types

This module defines types related to the spanning-tree protocol model.

  • Version: 2021-06-16

    openconfig-spanning-tree-types@2021-06-16


    
      module openconfig-spanning-tree-types {
    
        yang-version 1;
    
        namespace
          "http://openconfig.net/yang/spanning-tree/types";
    
        prefix oc-stp-types;
    
        import openconfig-extensions {
          prefix oc-ext;
        }
    
        organization "OpenConfig working group";
    
        contact
          "OpenConfig working group
    www.openconfig.net";
    
        description
          "This module defines types related to the
    spanning-tree protocol model.";
    
        revision "2021-06-16" {
          description
            "Remove trailing whitespace";
          reference
            "0.4.1";
    
        }
    
        revision "2021-02-19" {
          description
            "Correct range for bridge priority type.";
          reference
            "0.4.0";
    
        }
    
        revision "2019-11-28" {
          description
            "Correct revision statement date for v0.3.0";
          reference
            "0.3.1";
    
        }
    
        revision "2019-07-10" {
          description
            "Remove the time-since-last-topology-change leaf and
    replace it with a timestamp of last topology change.";
          reference
            "0.3.0";
    
        }
    
        revision "2018-11-21" {
          description
            "Add OpenConfig module metadata extensions.";
          reference
            "0.2.1";
    
        }
    
        revision "2017-07-14" {
          description
            "Migrated to OpenConfig types; fixed missing applied state
    in rapid-pvst";
          reference
            "0.2.0";
    
        }
    
        revision "2016-10-03" {
          description "Initial public revision";
          reference
            "0.1.0";
    
        }
    
        oc-ext:openconfig-version "0.4.1";
        oc-ext:regexp-posix;
        oc-ext:catalog-organization "openconfig";
        oc-ext:origin "openconfig";
    
        identity STP_PROTOCOL {
          description
            "base identity for support spanning tree protocol";
        }
    
        identity RSTP {
          base STP_PROTOCOL;
          description
            "Rapid Spanning Tree Protocol";
          reference
            "IEEE 802.1D 17";
    
        }
    
        identity MSTP {
          base STP_PROTOCOL;
          description
            "Multiple Spanning Tree Protocol";
          reference
            "IEEE 802.1Q 13";
    
        }
    
        identity RAPID_PVST {
          base STP_PROTOCOL;
          description
            "Rapid Per Vlan Spanning Tree Protocol";
        }
    
        identity STP_PORT_STATE {
          description
            "base identity for the different Spanning Tree Protocol port
    states";
          reference
            "IEEE 802.1D 7.4 Port States and the active topology";
    
        }
    
        identity DISABLED {
          base STP_PORT_STATE;
          description
            "A port that is manually isolated from the network";
        }
    
        identity LISTENING {
          base STP_PORT_STATE;
          description
            "Processing BPDUs and building active toplogy";
        }
    
        identity LEARNING {
          base STP_PORT_STATE;
          description
            "Building bridging tables; no forwarding of data";
        }
    
        identity BLOCKING {
          base STP_PORT_STATE;
          description
            "A port that would cause a loop if it were sending data,
    so it is only receiving BPDUs, untill a topology change
    removes the possibliity of a loop";
        }
    
        identity FORWARDING {
          base STP_PORT_STATE;
          description
            "Sending and receiving data, normal operation";
        }
    
        identity STP_EDGE_PORT {
          description
            "base identity for the different edge port modes";
          reference
            "IEEE 802.1D 17.13.1";
    
        }
    
        identity EDGE_ENABLE {
          base STP_EDGE_PORT;
          description
            "Enable edge port for the bridge port";
        }
    
        identity EDGE_DISABLE {
          base STP_EDGE_PORT;
          description
            "Disable edge port for the bridge port";
        }
    
        identity EDGE_AUTO {
          base STP_EDGE_PORT;
          description
            "Enable edge port autodetction for the bridge port";
        }
    
        identity STP_PORT_ROLE {
          description
            "Base identity for the different Spanning Tree Protocol port
    roles";
          reference
            "IEEE 802.1D 17.7 Port Role assignments";
    
        }
    
        identity ROOT {
          base STP_PORT_ROLE;
          description
            "The port that receives the best BPDU on a bridge is the
    root port";
        }
    
        identity DESIGNATED {
          base STP_PORT_ROLE;
          description
            "A port is designated if it can send the best BPDU on the
    segment to which it is connected.";
        }
    
        identity ALTERNATE {
          base STP_PORT_ROLE;
          description
            "An alternate port receives more useful BPDUs from another
    bridge and is a port blocked";
        }
    
        identity BACKUP {
          base STP_PORT_ROLE;
          description
            "A backup port receives more useful BPDUs from the same
    bridge it is on and is a port blocked";
        }
    
        typedef stp-bridge-priority-type {
          type uint16 {
            range "0..61440";
          }
          default "32768";
          description
            "The manageable component of the Bridge Identifier.  The bridge priority
    determines which bridge is selected as the root bridge (lowest priority
    value is selected as root).  Valid values are in the range 0 through
    61440, in steps of 4096.";
          reference
            "IEEE 802.1D 17.13.7 Bridge Identifier Priority";
    
        }
    
        typedef stp-port-priority-type {
          type uint8 {
            range "1..240";
          }
          description
            "The manageable component of the Port Identifier,
    also known as the Port Priority";
          reference
            "IEEE 802.1D 17.13.10 Port Identifier Priority";
    
        }
    
        typedef stp-guard-type {
          type enumeration {
            enum "ROOT" {
              value 0;
              description "Enable root guard";
            }
            enum "LOOP" {
              value 1;
              description "Enable loop guard";
            }
            enum "NONE" {
              value 2;
              description "disable guard";
            }
          }
          description
            "Type definition for the different STP guard for the switch port";
          reference
            "IEEE 802.1D 17.2";
    
        }
    
        typedef stp-link-type {
          type enumeration {
            enum "P2P" {
              value 0;
              description "Point-to-Point link";
            }
            enum "SHARED" {
              value 1;
              description "Shared link";
            }
          }
          description
            "Type definition for the different link types";
          reference
            "IEEE 802.1D 17.2";
    
        }
      }  // module openconfig-spanning-tree-types
    

© 2023 YumaWorks, Inc. All rights reserved.