<?xml version="1.0" encoding="US-ASCII"?>
<!-- This template is for creating an Internet Draft using xml2rfc,               
    which is available here: http://xml.resource.org. -->
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!-- One method to get references from the online citation libraries.             
    There has to be one entity for each item to be referenced.                    
    An alternate method (rfc include) is described in the references. -->
<!ENTITY RFC2119 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC2697 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2697.xml">
<!ENTITY RFC2698 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2698.xml">
<!ENTITY RFC6020 SYSTEM "http://xml.resource.org/public/rfc/bibxml/reference.RFC.6020.xml">
]>
<?xml-stylesheet type='text/xsl' href='rfc2629.xslt' ?>
<?rfc toc="yes" ?>
<?rfc tocompact="yes"?>
<?rfc tocindent="yes"?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes"?>
<?rfc iprnotified="no" ?>
<?rfc strict="yes" ?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>
<rfc category="std" docName="draft-ietf-netmod-node-tags-06" ipr="trust200902"
     updates="8407">
  <front>
    <title abbrev="Data Object Tags">Self-Describing Data Object Tags in YANG
    Data Models</title>

    <author fullname="Qin Wu" initials="Q." surname="Wu">
      <organization>Huawei</organization>

      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>

          <city>Nanjing</city>

          <region>Jiangsu</region>

          <code>210012</code>

          <country>China</country>
        </postal>

        <email>bill.wu@huawei.com</email>
      </address>
    </author>

    <author fullname="Benoit Claise" initials="B." surname="Claise">
      <organization>Huawei</organization>

      <address>
        <postal>
          <street>De Kleetlaan 6a b1</street>

          <city>Diegem</city>

          <code>1831</code>

          <country>Belgium</country>
        </postal>

        <email>benoit.claise@huawei.com</email>
      </address>
    </author>

    <author fullname="Peng Liu" initials="P." surname="Liu">
      <organization>China Mobile</organization>

      <address>
        <postal>
          <street>32 Xuanwumen West St, Xicheng District</street>

          <city>Beijing</city>

          <code>10053</code>
        </postal>

        <email>liupengyjy@chinamobile.com</email>
      </address>
    </author>

    <author fullname="Zongpeng Du" initials="Z." surname="Du">
      <organization>China Mobile</organization>

      <address>
        <postal>
          <street>32 Xuanwumen West St, Xicheng District</street>

          <city>Beijing</city>

          <code>10053</code>
        </postal>

        <email>duzongpeng@chinamobile.com</email>
      </address>
    </author>

    <author fullname="Mohamed Boucadair" initials="M." surname="Boucadair">
      <organization>Orange</organization>

      <address>
        <postal>
          <street/>

          <city>Rennes</city>

          <code>35000</code>

          <country>France</country>
        </postal>

        <email>mohamed.boucadair@orange.com</email>
      </address>
    </author>

    <date year="2022"/>

    <area>OPS Area</area>

    <workgroup>NETMOD Working Group</workgroup>

    <abstract>
      <t>This document defines a method to tag data objects that are
      associated with operation and management data in YANG modules. This
      method for tagging YANG data objects is meant to be used for classifying
      data objects from different YANG modules and identifying their
      characteristics data. Tags may be registered as well as assigned during
      the module definition, assigned by implementations, or dynamically
      defined and set by users.</t>

      <t>This document also provides guidance to future YANG data model
      writers; as such, this document updates RFC 8407.</t>
    </abstract>
  </front>

  <middle>
    <section anchor="intro" title="Introduction">
      <t>The use of tags for classification and organization purposes is
      fairly ubiquitous, not only within IETF protocols, but globally in the
      Internet (e.g., "#hashtags"). For the specific case of YANG data models,
      a module tag is defined as a string that is associated with a module
      name at the module level <xref target="RFC8819"/>.</t>

      <t>Many data models have been specified by various Standards Developing
      Organizations (SDOs) and the Open Source community, and it is likely
      that many more will be specified. These models cover many of the
      networking protocols and techniques. However, the data objects defined
      by these technology-specific data models might represent a portion of
      fault, configuration, accounting, performance, and security (FCAPS)
      management information (<xref target="FCAPS"/>) at different levels and
      network locations, but also categorised in various different ways.
      Furthermore, there is no consistent classification criteria or
      representation for a specific service, feature, or data source.</t>

      <t>This document defines self-describing data object tags and associates
      them with data objects within a YANG module, which: <list
          style="symbols">
          <t>Provide dictionary meaning for specific targeted data
          objects.</t>

          <t>Indicate a relationship between data objects within the same YANG
          module or from different YANG modules.</t>

          <t>Identify key performance metric data objects and the absolute
          XPath expression identifying the element path to the node.</t>
        </list></t>

      <t>The self-describing data object tags can be used by the NETCONF <xref
      target="RFC6241"/> or RESTCONF <xref target="RFC8040"/> client to
      classify data objects from different YANG modules and identify
      characteristic data. In addition, these tags can provide input,
      instructions, or indications to selection filters and filter queries of
      configuration or operational state on a server based on these data
      object tags (e.g., return specific objects containing operational state
      related to system-management). NETCONF clients can discover data objects
      with self-describing data object tags supported by a NETCONF server by
      means of the &lt;get-schema&gt; operation (Section 3.1 of <xref
      target="RFC6022"/>). The self-describing data object tag capability can
      also be advertised using the capability notification model <xref
      target="RFC9196"/> by the NETCONF server or some websites where offline
      documents are kept. Similar to YANG module tags defined in <xref
      target="RFC8819"/>, these data object tags may be registered or assigned
      during the module definition, assigned by implementations, or
      dynamically defined and set by users.</t>

      <t>This document defines a YANG module <xref target="RFC7950"/> that
      augments the module tag model <xref target="RFC8819"/> and provides a
      list of data object entries to add or remove self-describing tags as
      well as to view the set of self-describing tags associated with specific
      data objects within YANG modules.</t>

      <t>This document defines three extension statements to indicate
      self-describing tags that should be added by the module implementation
      automatically (i.e., outside of configuration).</t>

      <t>This document also defines an IANA registry for tag prefixes and a
      set of globally assigned tags (<xref target="iana"/>).</t>

      <t><xref target="guideline"/> provides guidelines for authors of YANG
      data models. This document updates <xref target="RFC8407"/>.</t>

      <t>The YANG data model in this document conforms to the Network
      Management Datastore Architecture defined in <xref
      target="RFC8342"/>.</t>
    </section>

    <section title="Terminology">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
      "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
      "OPTIONAL" in this document are to be interpreted as described in BCP 14
      <xref target="RFC2119"/><xref target="RFC8174"/> when, and only when,
      they appear in all capitals, as shown here.</t>

      <t>The meanings of the symbols in tree diagrams are defined in <xref
      target="RFC8340"/>.</t>
    </section>

    <!-- intro -->

    <section title="Self-Describing Data Object Tags: Massive Data Object Collection Use Case">
      <t>Among data object tags, the 'opm' (object, property, metric) tags can
      be used to tackle massive data object collections, indicate
      relationships between data objects, and capture YANG data objects
      associated with YANG-modelled performance metrics data. An example is
      depicted in <xref target="opm"/>.</t>

      <figure align="center" anchor="opm"
              title="The Relation between Object, Property, and Metric">
        <artwork align="center">                  .------.
                  |Object|
                  | Tag  |
                  '--+--'  
                     |
           +---------V--------+    contain
           | YANG Data Node   &lt;----------------+
           | /Data Object 1   |                |
           +--^-------------^-+                |
              |contain      |contain           |
              |             |                  |
  +-----------+---+ +- -----+-------+    +-----+---------+
  | YANG Data Node| | YANG Data Node|    | YANG Data Node|
  |/Sub Object 2  | | /Sub Object 3 |    | /Sub Object 4 |
  +--^------------+ +^-----^--------+    +^-----^------^-+
     |               |     |              |     |      |
 .---+---.           |  .--+--.           |  .--+--.   |
|Property |          | |Metric |          | |Metric |  |
|   Tag   |          | |  Tag  |          | | Tag   |  |
'---------'          | '-------'          | '-------'  |
                     |                    |            |
                  .--+--.              .--+--.     .---+---. 
                 |Metric |            |Metric |   || Multi ||
                 | Type  |            | Type  |   ||Metric ||
                 | Tag   |            |  Tag  |   ||Source ||
                 '-------'            '-------'   \\  Tag  //
                                                    '-----'</artwork>
      </figure>

      <t>In <xref target="opm"/>, data objects can contain other data objects
      called 'subobjects'. Both object and subobjects can be modeled as YANG
      data nodes <xref target="RFC7950"/>.</t>

      <t>Data objects that contain other data objects can be one of type
      'container', 'leaf-list', or 'list' and are tagged with the object
      tag.</t>

      <t>A subobject tagged with the property tag is a 'leaf' node.</t>

      <t>Subobjects tagged with the metric tag can be one of 'container',
      'leaf-list', 'list', or 'leaf' data node.</t>

      <t>A data object may contain one single object tag, or one single
      property tag, or one single metric tag. The data object tagged with the
      metric tag also can have one or multiple Metric Type tags and/or one
      single multi-source tag.</t>

      <t>The use of 'opm' tags is meant to help filter discrete categories of
      YANG data objects scattered across the same or different YANG modules
      that are supported by a device and capture all network performance data
      or all property data in a single view of the data. In the example shown
      in <xref target="opm-tab"/>, the 'tunnel-svc' data object is a container
      node defined in a 'tunnel-pm' module and can be seen as the root object
      for property tagged subobjects (e.g., 'tunnel-svc'/'create-time') and
      metric tagged subobjects (e.g., 'tunnel-svc'/'avg-latency'). The 'name',
      'create-time', and 'modified-time' are property tagged subobjects under
      'tunnel-svc' container. The 'avg-latency' and 'packet-loss' metrics are
      tagged subobjects under 'tunnel-svc' container node. Consider the
      'tunnel-svc' data object and the 'tunnel-svc/name' data object as an
      example: the 'tunnel-svc' data object has one single object tag (i.e.,
      'ietf:object'), while the 'tunnel-svc/name' data object has one single
      property subobject tag (i.e., 'ietf:property'). In addition, not all
      metric subobjects need to be tagged (e.g., define specific categories,
      such as loss-related metric subobjects need to be tagged with a
      metric-type tag which can further reduce amount data to be fetched).</t>

      <figure anchor="opm-tab"
              title="Example of OPM Tags Used in the YANG Module">
        <artwork>+------------------------+--------------------------------+-----------+
|      Data              |  Object    Property     Metric |  Multi-   |
|      Object            |   Tag        Tag         Tag   |Source Tag |
+------------------------+--------------------------------+-----------+
|                        |  ietf:                         |           |
|tunnel-svc              |  object                        |           |
|                        |            ietf:               |           |
|tunnel-svc/name         |            property            |           |
|                        |            ietf:               |           |
|tunnel-svc/create-time  |            property            |           |
|                        |            ietf:               |           |
|tunnel-svc/modified-time|            property            |           |
|                        |                                |           |
|tunnel-svc/avg-latency  |                        ietf:   | non-agg   |
|                        |                        metric  |           |
|tunnel-svc/packet-loss  |                        ietf:   | non-agg   |
|                        |                        metric  |           |
|tunnel-svc/min-latency  |                        ietf:   | non-agg   |
|                        |                        metric  |           |
|tunnel-svc/max-latency  |                        ietf:   | non-agg   |
|                        |                        metric  |           |
+------------------------+--------------------------------+-----------+

</artwork>
      </figure>

      <t/>

      <t>If data objects in YANG modules are adequately tagged and learnt by
      the client from a server, the client can retrieve paths to all targeted
      data objects and then use an XPath query defined in <xref
      target="RFC8639"/><xref target="RFC8641"/> to list all tagged data
      objects which reflect the network characteristics.</t>
    </section>

    <section title="Data Object Tag Values">
      <t>All data object tags SHOULD begin with a prefix indicating who owns
      their definition. An IANA registry (<xref target="prefix"/>) is used to
      register data object tag prefixes. Initially, three prefixes are
      defined.</t>

      <t>No further structure is imposed by this document on the value
      following the registered prefix, and the value can contain any YANG type
      'string' characters except carriage returns, newlines, tabs, and
      spaces.</t>

      <t>Except for the conflict-avoiding prefix, this document is
      purposefully not specifying any structure on (i.e., restricting) the tag
      values. The intent is to avoid arbitrarily restricting the values that
      designers, implementers, and users can use. As a result of this choice,
      designers, implementers, and users are free to add or not add any
      structure they may require to their own tag values.</t>

      <section anchor="ietf" title="IETF Tags">
        <t>An IETF tag is a data object tag that has the prefix "ietf:".</t>

        <t>All IETF data object tags are registered with IANA in the registry
        defined in <xref target="tag"/>.</t>
      </section>

      <section anchor="vendor" title="Vendor Tags">
        <t>A vendor tag is a tag that has the prefix "vendor:".</t>

        <t>These tags are defined by the vendor that implements the module,
        and are not registered with IANA. However, it is RECOMMENDED that the
        vendor includes extra identification in the tag to avoid collisions,
        such as using the enterprise or organization name following the
        "vendor:" prefix (e.g.,
        vendor:example.com:vendor-defined-classifier).</t>
      </section>

      <section title="User Tags">
        <t>A user tag is any tag that has the prefix "user:". For the
        avoidance of confusion, the colon (":") when it appears for the first
        time, is always assumed to be the separator between a prefix and the
        rest of the tag. And so, when a user tag does not have a prefix, it
        MUST NOT contain a colon.</t>

        <t>These tags are defined by a user/administrator and are not meant to
        be registered with IANA. Users are not required to use the "user:"
        prefix; however, doing so is RECOMMENDED as it helps avoid
        collisions.</t>
      </section>

      <section title="Reserved Tags">
        <t>Any tag not starting with the prefix "ietf:", "vendor:", or "user:"
        is reserved for future use (<xref target="prefix"/>).</t>

        <t>These tag values are not invalid, but simply reserved in the
        context of specifications (e.g., RFCs).</t>
      </section>
    </section>

    <section title="Data Object Tag Management">
      <t>Tags may be associated with a data object within a YANG module in a
      number of ways. Typically, tags may be defined and associated at the
      module design time, at implementation time without the need of a live
      server, or via user administrative control. As the main consumers of
      data object tags are users, users may also remove any tag from a live
      server, no matter how the tag became associated with a data object
      within a YANG module.</t>

      <section title="Module Design Tagging">
        <t>A data object definition MAY indicate a set of data object tags to
        be added by a module's implementer. These design time tags are
        indicated using a set of extension statements which include:<list
            style="hanging">
            <t hangText="opm-tag extension statement:">Classifies management
            and operation data into object, property subobject, and metric
            subobject categories. <vspace blankLines="1"/>Both objects and
            subobjects can be modeled as YANG data nodes <xref
            target="RFC7950"/>. Data objects that contain other data objects
            can be one of type 'container', 'leaf-list', and 'list' and are
            tagged with object tag. A subobject tagged with the property tag
            is a 'leaf' node. Subobjects tagged with the metric tag can be one
            of 'container', 'leaf-list', 'list', or 'leaf' data node. A data
            object contains one single object tag, one single property tag, or
            one single metric tag. <vspace blankLines="1"/>A data object
            tagged with metric tag also can have one or multiple Metric type
            tag and/or one single multi-source tag. See the examples depicted
            in <xref target="opm-tab"/> and <xref target="opm-example"/>.<!--Med: This text is already mentioned in previous section (see the new section 3). --></t>

            <t hangText="metric-type extension statement:">Provides metric
            data objects classifications (e.g., loss, jitter, delay, counter,
            gauge, summary, unknown) within the YANG module.</t>

            <t hangText="multi-source-tag extension statement:">Identifies
            multi-source aggregation type (e.g., aggregated, non-aggregated)
            related to a metric subobject. <vspace blankLines="1"/>The
            'aggregated' multi-source aggregation type allows a large number
            of measurements on metric subobjects from different sources of the
            same type (e.g., line card, each subinterface of aggregated
            Ethernet interface) to be combined into aggregated statistics and
            report as one metric subobject. <vspace blankLines="1"/>The
            'non-aggregated' multi-source aggregation type allows measurement
            from each source of the same type (e.g., line card, each
            subinterface of aggregated Ethernet interface) to be reported
            separately.</t>
          </list></t>

        <t>Among these extension statements, the 'metric-type' and
        'multi-source' tag extension statements are context information that
        can be used to correlate data objects from the different modules.</t>

        <t>If the data node is defined in an IETF Standards Track document,
        the data object tags MUST be IETF Tags (<xref target="ietf"/>). Thus,
        new data objects can drive the addition of new IETF tags to the IANA
        registry defined in <xref target="tag"/>, and the IANA registry can
        serve as a check against duplication.</t>
      </section>

      <section title="Implementation Tagging">
        <t>An implementation MAY include additional tags associated with data
        objects within a YANG module. These tags SHOULD be IETF (<xref
        target="ietf"/>) or vendor tags (<xref target="vendor"/>).</t>
      </section>

      <section title="User Tagging">
        <t>Data object tags of any kind, with or without a prefix, can be
        assigned and removed by the user from a server using normal
        configuration mechanisms. In order to remove a data object tag from
        the operational datastore, the user adds a matching "masked-tag" entry
        for a given data object within the 'ietf-data-object-tags' module.</t>
      </section>
    </section>

    <section title="Data Object Tags Module Structure">
      <section title="Data Object Tags Module Tree">
        <t>The tree associated with the "ietf-data-object-tags" module is as
        follows:</t>

        <figure title="YANG Module Tags Tree Diagram">
          <artwork>module: ietf-data-object-tags
augment /tags:module-tags/tags:module:
  +--rw data-object-tags
     +--rw data-object* [name]
        +--rw name  nacm:node-instance-identifier
        +--rw tag*         tags:tag
        +--rw masked-tag*  tags:tag                    </artwork>
        </figure>
      </section>
    </section>

    <section title="YANG Module">
      <t>This module imports types from [RFC8819],[RFC8341].</t>

      <figure>
        <artwork>&lt;CODE BEGINS&gt; file "ietf-data-object-tags@2022-02-04.yang"
module ietf-data-object-tags {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-data-object-tags";
  prefix ntags;

  import ietf-netconf-acm {
    prefix nacm;
    reference
    "RFC 8341: Network Configuration Access Control 
               Model";
  }
  import ietf-module-tags {
    prefix tags;
    reference
    "RFC 8819: YANG Module Tags ";
  }

  organization
    "IETF NetMod Working Group (NetMod)";
  contact
   "WG Web:  &lt;https://datatracker.ietf.org/wg/netmod/&gt;
    WG List: &lt;mailto:netmod@ietf.org&gt;

    Editor: Qin Wu 
            &lt;mailto:bill.wu@huawei.com&gt;

    Editor: Benoit Claise 
            &lt;mailto:benoit.claise@huawei.com&gt;

    Editor: Peng Liu 
            &lt;mailto:liupengyjy@chinamobile.com&gt;

    Editor: Zongpeng Du 
            &lt;mailto:duzongpeng@chinamobile.com&gt;

    Editor: Mohamed Boucadair 
            &lt;mailto:mohamed.boucadair@orange.com&gt;";
  description
    "This module describes a mechanism associating self-describing
     tags with YANG data object within YANG modules. Tags may be IANA
     assigned or privately defined.

     Copyright (c) 2022 IETF Trust and the persons identified as
     authors of the code. All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject to
     the license terms contained in, the Revised BSD License set
     forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC XXXX
     (https://datatracker.ietf.org/html/rfcXXXX); see the RFC itself 
     for full legal notices.";

  revision 2022-02-04 {
    description
      "Initial revision.";
    reference
      "RFC XXXX: Self-Describing Data Object Tags in YANG Data
                 Models";
  }

  extension opm-tag {
    argument tag;
    description
      "The argument 'tag' is of type 'tag'. This extension statement
       is used by module authors to indicate the opm tags that should 
       be added automatically by the system. 'opm-tag' is used to
       classify operation and management data objects into the three 
       categories, object, property, and metric. Data Object can 
       contain other data objects called subobjects. Both object and 
       subobjects can be modeled as data nodes. A data object 
       tagged with object tag can be one of container, leaf-list, or 
       list. A data object tagged is with the property tag is a leaf 
       node. The data object tagged with the metric tag can be one of 
       container, leaf-list, list, or leaf. A data objects tagged  
       with either property tag or metric tag are subobjects  
       belonging to a specific root data object. Each data object may   
       contain one single object tag, or one single property tag, 
       or one   single metric tag (these tags are mutually 
       exclusive). As such,  the origin of the value for the 
       pre-defined tags should be set to 'system'.";
  }

  extension metric-type {
    argument tag;
    description
      "The argument 'tag' is of type 'tag'. The metric type can be
       used to provide metric data object classification 
       (e.g., loss, jitter, packet loss, counter, gauge,  
       summary, unknown) within a YANG module.";
  }

  extension multi-source-tag {
    argument tag;
    description
      "The argument 'tag' is of type 'tag'. The multi-source-tag can 
      be used to identify multi-source aggregation type 
      (e.g., aggregated,  non-aggregated) related to a metric 
      subobject. 

      The 'aggregated' multi-source aggregation type allows a large 
      number of measurements on metric subobjects from different  
      sources of the same type (e.g., line card, each subinterface of  
      an aggregated Ethernet interface) to be combined into  
      aggregated statistics and reported as one metric subobject 
      value. 

      The 'non-aggregated'  multi-source aggregation type allows 
      measurement from each source of the same type (e.g., line 
      card, each subinterface of an aggregated Ethernet interface) to
      be reported separately.";
   }

  augment "/tags:module-tags/tags:module" {
    description
      "Augment the Module Tags module with data object tag 
       attributes.";
    container data-object-tags {
      description
        "Contains the list of data objects and their associated data 
         object tags.";
      list data-object {
        key "name";
        description
          "Includes a list of data objects and their associated data  
           object tags.";
        leaf name {
          type nacm:node-instance-identifier;
          mandatory true;
          description
            "The YANG data object name.";
        }
        leaf-list tag {
          type tags:tag;
          description
            "Lists the tags associated with the data object within 
             the YANG  module. 

             See the IANA 'YANG Data Object Tag Prefixes' registry  
             for reserved prefixes and the IANA 'IETF YANG Data 
             Object Tags' registry for IETF tags.

             The 'operational' state view of this list is
             constructed using the following steps:

             1) System tags (i.e., tags of 'system' origin) are 
                added.
             2) User configured tags (i.e., tags of 'intended' 
                origin) are added.
             3) Any tag that is equal to a masked-tag is removed.";
          reference
            "RFC XXXX: Self-Describing Data Object Tags in YANG Data
                       Models, Section 9";
        }
        leaf-list masked-tag {
          type tags:tag;
          description
            "The list of tags that should not be associated with the
             data object within the YANG module. The user can remove 
             (mask) tags from the operational state datastore by 
             adding them to this list. It is not an error to add tags 
             to this list that are not associated with the data 
             object within YANG  module, but they have no operational 
             effect.";
        }
      }
    }
  }
}
&lt;CODE ENDS&gt;</artwork>
      </figure>
    </section>

    <section anchor="guideline" title="Guidelines to Model Writers">
      <t>This section updates <xref target="RFC8407"/>.</t>

      <section title="Define Standard Tags">
        <t>A module MAY indicate, using data object tag extension statements,
        a set of data object tags that are to be automatically associated with
        data object within the module (i.e., not added through
        configuration).</t>

        <figure anchor="opm-example" title="An Example of Data Object Tag">
          <artwork>module example-module-A {
  //...
  import ietf-data-node-tags { prefix ntags; }

  container top {
    ntags:opm-tag "ietf:object";
    list X {
      leaf foo {
         ntags:opm-tag "ietf:property";
      }
      leaf bar {
        ntags:opm-tag "ietf:metric";
      }
    }
  }
  // ...
}</artwork>
        </figure>

        <t>The module writer can use existing standard data object tags, or
        use new data object tags defined in the data object definition, as
        appropriate. For IETF standardized modules, new data object tags MUST
        be assigned in the IANA registry defined in Section <xref
        target="tag"/>.</t>
      </section>
    </section>

    <section anchor="iana" title="IANA Considerations">
      <section anchor="prefix" title="YANG Data Object Tag Prefixes Registry">
        <t>This document requests IANA to create "YANG Data Object Tag
        Prefixes" subregistry in "YANG Data Object Tag" registry.</t>

        <t>This registry allocates tag prefixes. All YANG Data Object Tags
        should begin with one of the prefixes in this registry.</t>

        <t>Prefix entries in this registry should be short strings consisting
        of lowercase ASCII alpha-numeric characters and a final ":"
        character.</t>

        <t>The allocation policy for this registry is Specification Required
        <xref target="RFC8126"/>. The Reference and Assignee values should be
        sufficient to identify and contact the organization that has been
        allocated the prefix. There is no specific guidance for the Designated
        Expert and there is a presumption that a code point should be granted
        unless there is a compelling reason to the contrary.</t>

        <t>The initial values for this registry are as follows:</t>

        <figure title="Table 1">
          <artwork>+----------+----------------------------------+-----------+----------+
| Prefix   | Description                      | Reference | Assignee |
+----------+----------------------------------+-----------+----------+
| ietf:    | IETF Tags allocated in the IANA  | [This     | IETF     |
|          | IETF YANG Data Object Tags       | document] |          |
|          | registry                         |           |          |
|          |                                  |           |          |
| vendor:  | Non-registered tags allocated by | [This     | IETF     |
|          | the module's implementer.        | document] |          |
|          |                                  |           |          |
| user:    | Non-registered tags allocated by | [This     | IETF     |
|          | and for the user.                | document] |          |
+----------+----------------------------------+-----------+----------+</artwork>
        </figure>

        <t>Other standards organizations (SDOs) wishing to allocate their own
        set of tags should request the allocation of a prefix from this
        registry.</t>
      </section>

      <section anchor="tag" title="IETF YANG Data Object Tags Registry">
        <t>This document requests IANA to create "IETF OPM Tags","IETF Metric
        Type Tags","IETF Multiple Source Tags" three subregistries in "YANG
        Data Object Tag" registry. These 3 subregistries appear below "YANG
        Data Object Tag Prefixes" registry.</t>

        <t>Three subregistries allocate tags that have the registered prefix
        "ietf:". New values should be well considered and not achievable
        through a combination of already existing IETF tags.</t>

        <t>The allocation policy for these three subregistries is IETF Review
        <xref target="RFC8126"/>. The Designated Expert is expected to verify
        that IANA assigned tags conform to Net-Unicode as defined in <xref
        target="RFC5198"/>, and shall not need normalization.</t>

        <t>The initial values for these three subregistries are as
        follows:<!--Med: The same value is used for both those associated with defined/non define ranges. Is that on purpose?
Idem for agg and non-agg--></t>

        <figure title="Table 2">
          <artwork>   +----------------------------+--------------------------+-----------+
   | OPM Tag                    | Description              | Reference |
   +----------------------------+--------------------------+-----------+
   | ietf:object                |Represents Root object    | [This     |
   |                            |containing other data     | document] |
   |                            |objects (e.g., interfaces)|           |
   |                            |                          |           |
   | ietf:property              |Represents a property     | [This     |
   |                            |data object(e.g., ifindex)| document] |
   |                            |associated with a specific|           |
   |                            |root object (e.g.,        |           |
   |                            |interfaces)               |           |
   |                            |                          |           |
   | ietf:metric                |Represent metric data     | [This     |
   |                            |object(e.g., ifstatistics)| document] |
   |                            |associated with specific  |           |
   |                            |root object(e.g.,         |           |
   |                            |interfaces)               |           |
   +----------------------------+--------------------------+-----------+
   +----------------------------+--------------------------+-----------+
   | Metric Type Tag            | Description               | Reference |
   +----------------------------+--------------------------+-----------+
   | ietf:delay                 |Represents the delay metric           |
   |                            |group to which the metric | [This     |
   |                            |data objects belong to.   | document] |      
   |                            |                          |           |
   | ietf:jitter                |Represents the jitter metric [This    |
   |                            |group to which the metric |document]  |
   |                            |data objects belong to.   |           |
   |                            |                          |           |
   | ietf:loss                  |Represents the loss metric| [This     |
   |                            |group to which the metric | document] |
   |                            |data objects belong to.   |           |
   |                            |                          |           |
   | ietf:counter               |Represents any metric value           |
   |                            |associated with a metric  |           |
   |                            |data object that monotonically[This   |
   |                            |increases over time,      | document] |
   |                            |starting from zero.       |           |        
   |                            |                          |           |
   | ietf:gauge                 |Represents current        |           |
   |                            |measurements associated   | [This     |
   |                            |with a metric data object |document]  |
   |                            |that may increase,        |           |
   |                            |decrease or stay constant.|           |
   |                            |                          |           |
   | ietf:summary               |Represents the metric value [This     |
   |                            |associated with a metric  | document  |
   |                            |data object that measures |           |
   |                            |distributions of discrete |           |
   |                            |events without knowing    |           |
   |                            |predefined range.         |           |
   |                            |                          |           |
   | ietf:unknown               |Represents the metric value [This     |
   |                            |associated with metric    | document  |
   |                            |data object that can not  |           |
   |                            |determine the type of metric.         |
   +----------------------------+--------------------------+-----------+

   +----------------------------+--------------------------+-----------+
   | Multiple Source Tag        | Description              | Reference |
   +----------------------------+--------------------------+-----------+
   |ietf:agg                    |Relates to multiple sources [This     |
   |                            |aggregation type (i.e.,   | document] |
   |                            |aggregated statistics)    |           |
   |                            |                          |           |
   |ietf:non-agg                |Relates to multiple sources [This     |
   |                            |aggregation type (i.e.,   | document] |
   |                            |non-aggregated statistics)|           |
   +----------------------------+--------------------------+-----------+
</artwork>
        </figure>
      </section>

      <section anchor="xml" title="Updates to the IETF XML Registry">
        <t>This document registers the following namespace URI in the "ns"
        subregistry within the "IETF XML Registry" <xref
        target="RFC3688"/>:</t>

        <figure>
          <artwork>   URI: urn:ietf:params:xml:ns:yang:ietf-data-object-tags
   Registrant Contact: The IESG.
   XML: N/A; the requested URI is an XML namespace.</artwork>
        </figure>
      </section>

      <section anchor="module"
               title="Updates to the YANG Module Names Registry">
        <t>This document registers the following YANG module in the YANG
        Module Names registry <xref target="RFC6020"/> within the "YANG
        Parameters" registry:</t>

        <figure>
          <artwork>   name: ietf-data-object-tags
   namespace: urn:ietf:params:xml:ns:yang:ietf-data-object-tags
   prefix: ntags
   reference: RFC XXXX
   maintained by IANA: N</artwork>
        </figure>
      </section>
    </section>

    <section anchor="security" title="Security Considerations">
      <t>The YANG module specified in this document defines schema for data
      that is designed to be accessed via network management protocols such as
      NETCONF <xref target="RFC6241"/> or RESTCONF <xref target="RFC8040"/>.
      The lowest NETCONF layer is the secure transport layer, and the
      mandatory-to-implement secure transport is Secure Shell (SSH) <xref
      target="RFC6242"/>. The lowest RESTCONF layer is HTTPS, and the
      mandatory-to-implement secure transport is TLS <xref
      target="RFC8446"/>.</t>

      <t>The Network Configuration Access Control Model (NACM) <xref
      target="RFC8341"/> provides the means to restrict access for particular
      NETCONF or RESTCONF users to a preconfigured subset of all available
      NETCONF or RESTCONF protocol operations and content, e.g., the presence
      of tags may reveal information about the way in which data objects are
      used and therefore providing access to private information or revealing
      an attack vector should be restricted. Note that appropriate privilege
      and security levels need to be applied to the addition and removal of
      user tags to ensure that a user receives the correct data.</t>

      <t>This document adds the ability to associate data object tag meta-data
      with data object within the YANG modules. This document does not define
      any actions based on these associations, and none are yet defined, and
      therefore it does not by itself introduce any new security
      considerations.</t>

      <t>Users of the data object tag meta-data may define various actions to
      be taken based on the data object tag meta-data. These actions and their
      definitions are outside the scope of this document. Users will need to
      consider the security implications of any actions they choose to define,
      including the potential for a tag to get 'masked' by another user.</t>
    </section>

    <section title="Acknowledgements">
      <t>The authors would like to thank Ran Tao for his major contributions
      to the initial modeling and use cases.</t>

      <t>The authors would also like to acknowledge the comments and
      suggestions received from Juergen Schoenwaelder, Andy Bierman, Lou
      Berger,Jaehoon Paul Jeong, Wei Wang, Yuan Zhang, Ander Liu, YingZhen Qu,
      Boyuan Yan, Adrian Farrel, and Mahesh Jethanandani.</t>
    </section>

    <section title="Contributors">
      <figure>
        <artwork>      Liang Geng
      China Mobile
      32 Xuanwumen West St, Xicheng District
      Beijing  10053

      Email: gengliang@chinamobile.com</artwork>
      </figure>
    </section>

    <!---->
  </middle>

  <back>
    <references title="Normative References">
      <?rfc include="reference.RFC.2119"?>

      <?rfc include="reference.RFC.8174"?>

      <?rfc include="reference.RFC.7950"?>

      <?rfc include="reference.RFC.6020"?>

      <?rfc include="reference.RFC.8407"?>

      <?rfc include="reference.RFC.8126"?>

      <?rfc include="reference.RFC.8819"?>

      <?rfc include="reference.RFC.8040"?>

      <?rfc include="reference.RFC.8446"?>

      <?rfc include="reference.RFC.8341"?>

      <?rfc include="reference.RFC.3688"?>
    </references>

    <references title="Informative References">
      <?rfc include="reference.RFC.5198"?>

      <?rfc include="reference.RFC.6241"?>

      <?rfc include="reference.RFC.6242"?>

      <?rfc include="reference.RFC.8340"?>

      <?rfc include="reference.RFC.8639"?>

      <?rfc include="reference.RFC.8641"?>

      <?rfc include="reference.RFC.8342"?>

      <?rfc include='reference.RFC.9196'?>

      <?rfc include='reference.RFC.9195'?>

      <?rfc include='reference.RFC.6022'?>

      <?rfc include='reference.RFC.8792'?>

      <reference anchor="FCAPS"
                 target="http://www.itu.int/rec/T-REC-X.700-199209-I/en">
        <front>
          <title>X.700 : Management framework for Open Systems Interconnection
          (OSI) for CCITT applications</title>

          <author initials="" surname="International Telecommunication Union">
            <organization/>
          </author>

          <date month="September" year="1992"/>
        </front>

        <seriesInfo name="" value=""/>
      </reference>
    </references>

    <section anchor="netconfex" title="NETCONF Example">
      <t>The following is a NETCONF example result from a query of the data
      object tags list. For the sake of brevity only a few module and
      associated data object results are provided. The example uses the
      folding defined in <xref target="RFC8792"/>.</t>

      <figure title="Example NETCONF Query Output">
        <artwork>=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;ns0:data xmlns:ns0="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
 &lt;t:module-tags xmlns:t="urn:ietf:params:xml:ns:yang:ietf-module-tags"&gt;
    &lt;t:module&gt;
       &lt;t:name&gt;ietf-interfaces&lt;/t:name&gt;
       &lt;s:data-object-tags xmlns:s="urn:ietf:params:xml:ns:yang:ietf-\
data-object-tags"&gt;
        &lt;s:data-object&gt;
         &lt;s:name&gt;/if:interfaces/if:interface&lt;/s:name&gt;
         &lt;s:tag&gt;ietf:object&lt;/s:tag&gt;
        &lt;/s:data-object&gt;
       &lt;s:data-object&gt;
        &lt;s:name&gt;/if:interfaces/if:interface/if:last-change&lt;/\
s:name&gt;
        &lt;s:tag&gt;ietf:property&lt;/s:tag&gt;
       &lt;/s:data-object&gt;
        &lt;s:data-object&gt;
         &lt;s:name&gt;
          /if:interfaces/if:interface/if:statistics/if:in-errors
         &lt;/s:name&gt;
         &lt;s:tag&gt;ietf:metric&lt;/s:tag&gt;
         &lt;s:tag&gt;ietf:loss&lt;/s:tag&gt;
         &lt;s:tag&gt;ietf:non-agg&lt;/s:tag&gt;
        &lt;/s:data-object&gt;
      &lt;/s:data-object-tags&gt;
    &lt;/t:module&gt;
    &lt;t:module&gt;
       &lt;t:name&gt;ietf-ip&lt;/t:name&gt;
       &lt;s:data-object-tags xmlns:s="urn:ietf:params:xml:ns:yang:ietf\
-data-object-tags"&gt;
       &lt;s:data-object&gt;
         &lt;s:name&gt;/if:interfaces/if:interface/ip:ipv4&lt;/s:name&gt;
         &lt;s:tag&gt;ietf:object&lt;/s:tag&gt;
       &lt;/s:data-object&gt;
       &lt;s:data-object&gt;
         &lt;s:name&gt;/if:interfaces/if:interface/ip:ipv4/ip:enable\
&lt;/s:name&gt;
         &lt;s:tag&gt;ietf:property&lt;/s:tag&gt;
       &lt;/s:data-object&gt;
        &lt;s:data-object&gt;
        &lt;s:name&gt;/if:interfaces/if:interface/ip:ipv4/ip:mtu&lt;/s:name&gt;
        &lt;s:tag&gt;ietf:metric&lt;/s:tag&gt;
        &lt;s:tag&gt;ietf:non-agg&lt;/s:tag&gt;
       &lt;/s:data-object&gt;
      &lt;/s:data-object-tags&gt;
    &lt;/t:module&gt;
  &lt;/t:module-tags&gt;
&lt;/ns0:data&gt;</artwork>
      </figure>
    </section>

    <section title="Non-NMDA State Module">
      <t>As per [RFC8407], the following is a non-NMDA module to support
      viewing the operational state for non-NMDA compliant servers.</t>

      <figure>
        <artwork>&lt;CODE BEGINS&gt; file "ietf-data-object-tags-state@2022-02-03.yang"
module ietf-data-object-tags-state {
  yang-version 1.1;
  namespace 
        "urn:ietf:params:xml:ns:yang:ietf-data-object-tags-state";
  prefix ntags-s;

  import ietf-netconf-acm {
    prefix nacm;
    reference
    "RFC 8341: Network Configuration Access Control 
               Model";
  }
  import ietf-module-tags {
    prefix tags;
    reference
    "RFC 8819: YANG Module Tags ";
  }
  organization
    "IETF NetMod Working Group (NetMod)";

  contact
   "WG Web: &lt;https://datatracker.ietf.org/wg/netmod/&gt;
    WG List:&lt;mailto:netmod@ietf.org&gt;

    Editor: Qin Wu 
            &lt;mailto:bill.wu@huawei.com&gt;

    Editor: Benoit Claise 
            &lt;mailto:benoit.claise@huawei.com&gt;

    Editor: Peng Liu 
            &lt;mailto:liupengyjy@chinamobile.com&gt;

    Editor: Zongpeng Du 
            &lt;mailto:duzongpeng@chinamobile.com&gt;

    Editor: Mohamed Boucadair 
            &lt;mailto:mohamed.boucadair@orange.com&gt;";

  description
    "This module describes a mechanism associating self-describing
     tags with YANG data object within YANG modules. Tags may be 
     IANA assigned or privately defined.

     Copyright (c) 2022 IETF Trust and the persons identified as
     authors of the code. All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject
     to the license terms contained in, the Simplified BSD License 
     set forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC XXXX
     (https://datatracker.ietf.org/html/rfcXXXX); see the RFC 
     itself for full legal notices.";

  revision 2022-02-04 {
    description
      "Initial revision.";
    reference
      "RFC XXXX: Self-Describing Data Object Tags in YANG Data
                 Models";
  }

  extension opm-tag {
    argument tag;
    description
      "The argument 'tag' is of type 'tag'. This extension 
       statement is used by module authors to indicate the opm tags
       that should be added automatically by the system. 'opm-tag' 
       is used to classify operation and management data objects 
       into the three categories, object, property, and metric. 
       Data Object can contain other data objects called subobjects. 
       Both object and subobjects can be modeled as data nodes. The 
       Data Object tagged with object tag can be one of container, 
       leaf-list and list. The Data Object tagged with the Property 
       tag is a leaf node. The Data Object tagged with the Metric 
       tag can be one of type container, leaf-list, list, leaf. The 
       Data objects tagged with either property tag or metric tag 
       are subobjects belonging to a specific root data object. Each 
       Data Object may contain one single object tag, or one single 
       property tag, or one single metric tag (these tags are 
       mutually exclusive). As such, the origin of the value for the 
       pre-defined tags should be set to 'system'.";
  }
  extension metric-type {
    argument tag;
    description
      "The argument 'tag' is of type 'tag'.The metric-type can be
       used to provide metric subobject classification
       (e.g., loss, jitter, packet loss, guage, counter, histogram, 
       unknow, etc.) within the YANG module.";
  }
  extension multi-source-tag {
    argument tag;
    description
      "The argument 'tag' is of type 'tag'. The multi-source tag can 
       be used to identify multi-source aggregation type (e.g.,
       aggregated, non-aggregated) related to a metric subobject. 

      The 'aggregated' multi-source aggregation type allows a large 
      number of measurements on metric subobjects from different 
      sources of the same type (e.g., line card, each subinterface 
      of aggregated Ethernet interface) to be combined into 
      aggregated statistics and reported as one metric subobject 
      value. 

      The 'non-aggregated'multi-source aggregation type 
      allows measurement from each source of the same type 
      (e.g., line card, each subinterface of aggregated Ethernet 
      interface) to be reported separately.";
   }

  augment "/tags:module-tags/tags:module" {
    description
      "Augments the Module Tags module with data object tag 
       attributes.";
    container data-object-tags {
      config false;
      status deprecated;
      description
        "Contains the list of data objects and their 
         associated self describing tags.";
      list data-object {
        key "name";
        status deprecated;
        description
          "Lists the data objects and their associated self 
           describing tags.";
        leaf name {
          type nacm:node-instance-identifier;
          mandatory true;
          status deprecated;
          description
            "The YANG data object name.";
        }
        leaf-list tag {
          type tags:tag;
          status deprecated;
          description
            "Tags associated with the data object within the 
             YANG module. See the IANA 'YANG Data Object Tag 
             Prefixes' registry for reserved prefixes and the 
             IANA 'IETF YANG Data Object Tags'registry for 
             IETF tags.

             The 'operational' state view of this list is
             constructed using the following steps:

             1) System tags (i.e., tags of 'system' origin) are 
                added.
             2) User configured tags (i.e., tags of 'intended' 
                origin) are added.
             3) Any tag that is equal to a masked-tag is removed.";
          reference
            "RFC XXXX: Self-Describing Data Object Tags in YANG Data
                       Models, Section 9";
        }
        leaf-list masked-tag {
          type tags:tag;
          status deprecated;
          description
            "The list of tags that should not be associated with the 
             data object within the YANG module. The user can remove 
             (mask) tags from the operational state datastore by 
             adding them to this list. It is not an error to add  
             tags to this list that are not associated with the 
             data object within YANG module, but they have no 
             operational effect.";
        }
      }
    }
  }
}
&lt;CODE ENDS&gt;</artwork>
      </figure>
    </section>

    <section title="Targeted data object collection example">
      <t>The following provides targeted data object collection example which
      helps reduce amount of data to be fetched. The subscription "id" values
      of 22 used below is just an example. In production, the actual values of
      "id" might not be small integers.</t>

      <figure>
        <artwork>+-----------+                        +-----------+
| Subscriber|                        | Publisher |
+-----+-----+                        +-----+-----+
      |                                    |
      |Telemery data Tagging Advertisement |
      |(data object name, opm-tag = metric)|
      |&lt;-----------------------------------+
      |                                    |
      |     establish-subscription         |
      +-----------------------------------&gt;|
      |                                    |
      |       RPC Reply: OK, id = 22       |
      |&lt;-----------------------------------+
      |                                    |
      |    Notification Message (for 22)   |
      |&lt;-----------------------------------+
      |                                    |</artwork>
      </figure>

      <t>The publisher advertises telemetry data object capability to the
      subscriber to instruct the receiver to subscribe tagged data object
      (e.g., performance metric data object) using standard subscribed
      notification mechanism [RFC8639]. The corresponding telemetry data
      object capability model is created based on ietf-data-object-tags module
      defined in this document.</t>

      <t><xref target="ex"/> illustrates the advertisment of the list of
      available target objects using the YANG instance file format <xref
      target="RFC9195"/>:</t>

      <figure anchor="ex" title="List of Available Target Objects">
        <artwork>=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;instance-data-set xmlns=\
"urn:ietf:params:xml:ns:yang:ietf-yang-instance-data"&gt;
  &lt;name&gt;acme-router-notification-capabilities&lt;/name&gt;
  &lt;content-schema&gt;
    &lt;module&gt;ietf-system-capabilities@2020-03-23&lt;/module&gt;
    &lt;module&gt;ietf-notification-capabilities@2020-03-23&lt;/module&gt;
    &lt;module&gt;ietf-data-export-capabilities@2020-03-23&lt;/module&gt;
  &lt;/content-schema&gt;
  &lt;!-- revision date, contact, etc. --&gt;
  &lt;description&gt;Defines the notification capabilities of an 
    acme-router.The router only has running, and operational 
    datastores. Every change can be reported on-change from 
    running, but only config=true nodes and some config=false data 
    from operational. Statistics are not reported based on timer 
    based trigger and counter threshold based trigger.
  &lt;/description&gt;
  &lt;content-data&gt;
    &lt;system-capabilities \
      xmlns="urn:ietf:params:xml:ns:yang:ietf-system-capabilities" \
xmlns:inc=\
"urn:ietf:params:xml:ns:yang:ietf-notification-capabilities" \
xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores"&gt;
      &lt;datastore-capabilities&gt;
        &lt;datastore&gt;ds:operational&lt;/datastore&gt;
        &lt;per-node-capabilities&gt;
          &lt;node-selector&gt;\
/if:interfaces/if:interface/if:statistics/if:in-errors\
&lt;/node-selector&gt;
          &lt;sec:self-describing-capabilities&gt;
            &lt;sec:opm-tag&gt;metric&lt;/sec:opm-tag&gt;
            &lt;sec:metric-type&gt;loss&lt;/sec:metric-type&gt;
          &lt;/sec:self-describing-capabilities&gt;
        &lt;/per-node-capabilities&gt;
      &lt;/datastore-capabilities&gt;
    &lt;/system-capabilities&gt;
  &lt;/content-data&gt;
&lt;/instance-data-set&gt;</artwork>
      </figure>

      <t/>

      <t>With telemetry data tagging information carried in the telemetry data
      tagging Advertisement, the subscriber identifies targeted data object
      and associated data path to the datastore node and sends a standard
      establish-subscription RPC <xref target="RFC8639"/> to subscribe tagged
      data objects that are interests to the client application from the
      publisher. Alternatively, the subscriber can query data object tag list
      from somewhere (e.g., the network device, or offline document) using
      ietf-data-object-tags module defined in this document and fetch tagged
      data objects and associated data path to the datastore node and sends a
      standard establish-subscription RPC <xref target="RFC8639"/> to
      subscribe tagged data objects that are interests to the client
      application from the publisher.</t>

      <figure>
        <artwork>=============== NOTE: '\' line wrapping per RFC 8792 ================

 &lt;netconf:rpc message-id="101"
     xmlns:netconf="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
   &lt;establish-subscription
       xmlns="urn:ietf:params:xml:ns:yang:ietf-subscribed-notifica\
tions"
       xmlns:yp="urn:ietf:params:xml:ns:yang:ietf-yang-push"&gt;
     &lt;yp:datastore
          xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores"&gt;
       ds:operational
     &lt;/yp:datastore&gt;
     &lt;yp:datastore-xpath-filter
         xmlns:ex="https://example.com/sample-data/1.0"&gt;
       /if:interfaces/if:interface/if:statistics/if:in-errors
     &lt;/yp:datastore-xpath-filter&gt;
     &lt;yp:periodic&gt;
       &lt;yp:period&gt;500&lt;/yp:period&gt;
     &lt;/yp:periodic&gt;
   &lt;/establish-subscription&gt;
 &lt;/netconf:rpc&gt;</artwork>
      </figure>

      <t/>

      <t>The publisher returns specific object types of operational state
      (e.g., in-errors statistics data) subscribed by the client.</t>
    </section>

    <section title="Changes between Revisions">
      <t>Editorial Note (To be removed by RFC Editor)</t>

      <t>v05 - v06<list style="symbols">
          <t>Additional Editorial changes;</t>

          <t>Use the folding defined in [RFC8792].</t>
        </list></t>

      <t>v04 - v05<list style="symbols">
          <t>Add user tag formating clarification;</t>

          <t>Provide guidance to the Designated Expert for evaluation of YANG
          Data Object Tag registry and YANG Data Object Tag prefix
          registry.</t>

          <t>Update the figure 1 and figure 2 with additional tags.</t>

          <t>Security section enhancement for user tag managment.</t>

          <t>Change data object name into name in the module.</t>

          <t>Other Editorial changes to address Adrian's comments and comments
          during YANG docotor review.</t>

          <t>Open issue: Are there any risks associated with an attacker
          adding or removing tags so that a requester gets the wrong data?</t>
        </list></t>

      <t>v03 - v04<list style="symbols">
          <t>Remove histogram metric type tag from metric type tags.</t>

          <t>Clarify the object tag and property tag,metric tag are mutual
          exlusive.</t>

          <t>Clarify to have two optional node tags (i.e.,object tag and
          property tag) to indicate relationship between data objects.</t>

          <t>Update targeted data object collection example.</t>
        </list></t>

      <t>v02 - v03<list style="symbols">
          <t>Additional Editorial changes.</t>

          <t>Security section enhancement.</t>

          <t>Nits fixed.</t>
        </list></t>

      <t>v01 - v02<list style="symbols">
          <t>Clarify the relation between data object, object tag, property
          tag and metric tag in figure 1 and figure 2 and related
          description;</t>

          <t>Change Metric Group into Metric Type in the YANG model;</t>

          <t>Add 5 metric types in section 7.2;</t>
        </list></t>

      <t>v00 - v01<list style="symbols">
          <t>Merge self-describing data object tag use case section into
          introduction section as a subsection;</t>

          <t>Add one glossary section;</t>

          <t>Clarify the relation between data object, object tag, property
          tag and metric tag in Self-Describing Data Object Tags Use Case
          section;</t>

          <t>Add update to RFC8407 in the front page.</t>
        </list></t>
    </section>
  </back>
</rfc>
