netconfcentral logo

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



  module ieee802-dot1q-lldp-evb-tlv {

    yang-version 1.1;

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

    prefix lldp-evb-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 "2020-08-10" {
      description
        "LLDP extension tlv for EVB";
      reference
        "IEEE Std 802.1Q-2018 Annex D";

    }


    grouping evb-tlv {
      description
        "Edge Virtual Bridging (EVB) TLV";
      reference
        "IEEE Std 802.1Q-2018 Annex D.2.12";

      leaf evb-tlv-info-string {
        type binary {
          length "0..9";
        }
        config false;
        description
          "Opaque string containing EVB TLV information string. As the
        elements within the string are not individually manipulated by
        management (they are of concern only to the state machines),
        the sub-structure of the string is not visible as separate
        objects within the local database.";
        reference
          "IEEE Std 802.1Q-2018 Annex D.2.12";

      }
    }  // grouping evb-tlv

    grouping cdcp-tlv {
      description
        "Channel Discovery and Configuration TLV";
      reference
        "IEEE Std 802.1Q-2018 Annex D.2.13";

      leaf cdcp-tlv-info-string {
        type binary {
          length "0..511";
        }
        config false;
        description
          "Opaque string containing CDCP TLV information. Up to 167
        S-channel numbers are supported. As the elements within the
        string are not individually manipulated by management (they
        are of concern only to the state machines), the sub-structure
        of the string is not visible as separate objects within the
        local database.";
        reference
          "IEEE Std 802.1Q-2018 Annex D.2.13 and D.2.13.8";

      }
    }  // grouping cdcp-tlv

    augment /lldp:lldp/lldp:port {
      description
        "Augments port with the evb extension tlv";
      leaf tlvs-tx-org-evb-enable {
        type bits {
          bit evb {
            position 0;
            description
              "802.1Q-2018 Annex D2.12";
          }
          bit cdcp {
            position 1;
            description
              "802.1Q-2018 Annex D2.13";
          }
        }
        description
          "Bitmap that includes the evbSet of tlvs from Table D.1 of
        802.1Q-2018";
        reference
          "IEEE Std 802.1Q-2018 Annex D.1";

      }

      container evb-tlv-extension {
        uses evb-tlv;
      }  // container evb-tlv-extension

      container cdcp-tlv-extension {
        uses cdcp-tlv;
      }  // container cdcp-tlv-extension
    }

    augment /lldp:lldp/lldp:port/lldp:remote-systems-data {
      description
        "Augments port remote-systems-data with received evb extension
      tlvs";
      container evb-tlv-extension {
        uses evb-tlv;
      }  // container evb-tlv-extension

      container cdcp-tlv-extension {
        uses cdcp-tlv;
      }  // container cdcp-tlv-extension
    }
  }  // module ieee802-dot1q-lldp-evb-tlv