netconfcentral logo

ieee802-dot1q-lldp-tr-tlv

HTML

ieee802-dot1q-lldp-tr-tlv@2020-08-10



  module ieee802-dot1q-lldp-tr-tlv {

    yang-version 1.1;

    namespace
      'urn:ieee:std:802.1Q:yang:ieee802-dot1q-lldp-tr-tlv';

    prefix lldp-tr-tlv;

    import ieee802-dot1ab-lldp {
      prefix lldp;
    }

    organization
      "Institute of Electrical and Electronics Engineers";

    contact
      "WG-URL: http://ieee802.org/1/
     WG-EMail: stds-802-1-l@ieee.org
       Contact: IEEE 802.1 Working Group Chair
       Postal: C/O IEEE 802.1 Working Group
       IEEE Standards Association
            445 Hoes Lane
            Piscataway, NJ 08854
            USA
    
     E-mail: stds-802-1-chairs@ieee.org";

    description
      "IEEE Std 802.1Q extension tlvs for LLDP from the Topology
    Recognition set (trSet)";

    revision "2020-08-10" {
      description
        "LLDP extension tlvs for the trSet";
      reference
        "Annex D of IEEE Std 802.1Qcz-202X";

    }


    grouping topology-recognition-tlv-lldp {
      description
        "System level components of Topology Recognition TLV";
      reference
        "Annex D.2.16 of IEEE Std 802.1Qz-202X";

      leaf device-type {
        type enumeration {
          enum "end-station" {
            value 0;
            description
              "Indicates that the device is a non-relay end-station or
            server.";
          }
          enum "bridge" {
            value 1;
            description
              "Indicates that the device is a layer-2 bridge.";
          }
          enum "router" {
            value 2;
            description
              "Indicates that the device is a layer-3 router.";
          }
          enum "unknown" {
            value 255;
            description
              "Indicates that the device type is unknown.";
          }
        }
        config false;
        reference
          "D.2.16.3 of IEEE Std 802.1Qcz-202X";

      }

      leaf topology-level {
        type uint8;
        description
          "A single octet unsigned integer that indicates the system’s
        understanding of its current level in the topology. The value
        of 0 indicates the edge of the topology and the value 255
        indicates the level is currently unknown. Other non-zero
        values indicate the minimum number of links between the system
        and the edge of the topology. Initially systems may not know
        their position in the topology and will use the value of
        unknown by default. As systems discover the device type and
        topology level of their peers the topology level of the
        sending system may change.";
        reference
          "D.2.16.4 of IEEE Std 802.1Qcz-202X";

      }
    }  // grouping topology-recognition-tlv-lldp

    grouping topology-recognition-tlv-port {
      description
        "Port level components of Topology Recognition TLV";
      reference
        "Annex D.2.16 of IEEE Std 802.1Qz-202X";

      leaf port-orientation {
        type enumeration {
          enum "uplink" {
            value 0;
            description
              "Indicates that the port is facing a system deeper in the
            topology.";
          }
          enum "downlink" {
            value 1;
            description
              "Indicates that the port is facing a system closer to the
            edge of the topology.";
          }
          enum "crosslink" {
            value 2;
            description
              "Indicates that the port is facing a system at the same
            level in the topology.";
          }
          enum "unknown" {
            value 255;
            description
              "Indicates that the port orientation is unknown.";
          }
        }
        description
          "Indicates whether the port is facing an uplink, downlink,
        crosslink or the orientation is currently unknown. Initially
        systems may not know the port orientation and will use the
        value of unknown by default. As systems discover the device
        type and topology level of their peers the port orientation of
        the sending system may change.";
        reference
          "D.2.16.5 of IEEE Std 802.1Qcz-202X";

      }
    }  // grouping topology-recognition-tlv-port

    augment /lldp:lldp {
      description
        "Augments lldp with information at the system level needed to
      construct Topology Recognition TLVs";
      reference
        "Annex D.2.16 of IEEE Std 802.1Qz-202X";

      container topology-recognition-tlv-extension {
        uses topology-recognition-tlv-lldp;
      }  // container topology-recognition-tlv-extension
    }

    augment /lldp:lldp/lldp:port {
      when "lldp:name";
      description
        "Augments port with Topology Recognition extension tlvs";
      leaf tlvs-tx-org-tr-enable {
        type bits {
          bit topology-recognition {
            position 0;
            description
              "Enables transmission of the Topology Recognition TLV in
            the trSet";
          }
        }
        description
          "Bitmap that includes the trSet of tlvs from Table D.1 of
        802.1Q-2018";
        reference
          "Annex D.2 of IEEE Std 802.1Q-2018";

      }

      container topology-recognition-tlv-extension {
        uses topology-recognition-tlv-port;
      }  // container topology-recognition-tlv-extension
    }

    augment /lldp:lldp/lldp:port/lldp:remote-systems-data {
      description
        "Augments port remote-systems-data with received Topology
      Recognition extension tlvs";
      container congestion-isolation-tlv-extension {
        uses topology-recognition-tlv-lldp;

        uses topology-recognition-tlv-port;
      }  // container congestion-isolation-tlv-extension
    }
  }  // module ieee802-dot1q-lldp-tr-tlv

Summary

  
  
Organization Institute of Electrical and Electronics Engineers
  
Module ieee802-dot1q-lldp-tr-tlv
Version 2020-08-10
File ieee802-dot1q-lldp-tr-tlv.yang
  
Prefix lldp-tr-tlv
Namespace urn:ieee:std:802.1Q:yang:ieee802-dot1q-lldp-tr-tlv
  
Cooked /cookedmodules/ieee802-dot1q-lldp-tr-tlv/2020-08-10
YANG /src/ieee802-dot1q-lldp-tr-tlv@2020-08-10.yang
XSD /xsd/ieee802-dot1q-lldp-tr-tlv@2020-08-10.xsd
  
Abstract IEEE Std 802.1Q extension tlvs for LLDP from the Topology Recognition set (trSet)
  
Contact
WG-URL: http://ieee802.org/1/
WG-EMail: stds-802-1-l@ieee.org
  Contact: IEEE 802.1 Working Group Chair
  Postal: C/O IEEE 802.1 Working Group
  IEEE Standards Association
       445 Hoes Lane
       Piscataway, NJ 08854
       USA

E-mail: stds-802-1-chairs@ieee.org

Description

 
IEEE Std 802.1Q extension tlvs for LLDP from the Topology
Recognition set (trSet)

Groupings

Grouping Objects Abstract
topology-recognition-tlv-lldp device-type topology-level System level components of Topology Recognition TLV
topology-recognition-tlv-port port-orientation Port level components of Topology Recognition TLV