ieee802-dot1q-lldp-cn-tlv

IEEE Std 802.1Q extension tlvs for LLDP

  • Version: 2021-03-02

    ieee802-dot1q-lldp-cn-tlv@2021-03-02


    
      module ieee802-dot1q-lldp-cn-tlv {
    
        yang-version 1.1;
    
        namespace
          'urn:ieee:std:802.1Q:yang:ieee802-dot1q-lldp-cn-tlv';
    
        prefix lldp-cn-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";
    
        revision "2021-03-02" {
          description
            "LLDP extension tlv for congestion notification. Published as part
          of IEEE Std 802.1Qcz-2021. Initial version.";
          reference
            "IEEE Std 802.1Qcz-2021 Annex D";
    
        }
    
    
        grouping congestion-notification-tlv {
          description
            "Congestion Notification TLV";
          reference
            "IEEE Std 802.1Q-2018 Annex D.2.7";
    
          typedef congestion-notification-bit-vector {
            type bits {
              bit priority0 {
                position 0;
                description
                  "status for priority0, 0 is FALSE, 1 is TRUE";
              }
              bit priority1 {
                position 1;
                description
                  "status for priority1, 0 is FALSE, 1 is TRUE";
              }
              bit priority2 {
                position 2;
                description
                  "status for priority2, 0 is FALSE, 1 is TRUE";
              }
              bit priority3 {
                position 3;
                description
                  "status for priority3, 0 is FALSE, 1 is TRUE";
              }
              bit priority4 {
                position 4;
                description
                  "status for priority4, 0 is FALSE, 1 is TRUE";
              }
              bit priority5 {
                position 5;
                description
                  "status for priority5, 0 is FALSE, 1 is TRUE";
              }
              bit priority6 {
                position 6;
                description
                  "status for priority6, 0 is FALSE, 1 is TRUE";
              }
              bit priority7 {
                position 7;
                description
                  "status for priority7, 0 is FALSE, 1 is TRUE";
              }
            }
            description
              "Describes a bit vector used in Congestion Notification Objects";
            reference
              "IEEE 802.1Q-2018 Clause 32.4.7 and Clause 32.4.8";
    
          }
          leaf per-priority-xmit-cnpv-capable {
            type congestion-notification-bit-vector;
            description
              "Indicates if a priority on this Port is operating as a CNPV";
            reference
              "IEEE Std 802.1Q-2018 Annex D.2.7.3 and Clause 32.4.7";
    
          }
    
          leaf per-priority-xmit-ready {
            type congestion-notification-bit-vector;
            description
              "Indicates if the priority remap defenses for this Port and CNPV
            have been disabled";
            reference
              "IEEE Std 802.1Q-2018 Annex D.2.7.4 and Clause 32.4.8";
    
          }
        }  // grouping congestion-notification-tlv
    
        augment /lldp:lldp/lldp:port {
          description
            "Augments port with the congestion notfication extension tlv";
          leaf tlvs-tx-org-congestion-notification-enable {
            type boolean;
            description
              "Leaf that indicates if congestion notification tlv is enabled
            from Table D.1 of 802.1Q-2018";
            reference
              "IEEE Std 802.1Q-2018 Annex D.2";
    
          }
    
          container congestion-notification-tlv-extension {
            description
              "The Congesiton Notification TLV";
            uses congestion-notification-tlv;
          }  // container congestion-notification-tlv-extension
        }
    
        augment /lldp:lldp/lldp:port/lldp:remote-systems-data {
          description
            "Augments port remote-systems-data with received cn extension tlvs";
          container congestion-notification-tlv-extension {
            description
              "Holds a received Congesiton Notification TLV";
            uses congestion-notification-tlv;
          }  // container congestion-notification-tlv-extension
        }
      }  // module ieee802-dot1q-lldp-cn-tlv
    

© 2023 YumaWorks, Inc. All rights reserved.