<?xml version="1.0" encoding="UTF-8"?>
  <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
  <!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.0.37 -->

<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
]>

<?rfc strict="yes"?>
<?rfc toc="yes"?>
<?rfc tocdepth="4"?>
<?rfc symrefs="yes"?>
<?rfc sortrefs="yes"?>
<?rfc compact="yes"?>
<?rfc subcompact="no"?>

<rfc ipr="trust200902" docName="draft-ietf-core-yang-cbor-03" category="std">

  <front>
    <title>CBOR Encoding of Data Modeled with YANG</title>

    <author initials="M.V." surname="Veillette" fullname="Michel Veillette" role="editor">
      <organization>Trilliant Networks Inc.</organization>
      <address>
        <postal>
          <street>610 Rue du Luxembourg</street>
          <city>Granby</city>
          <region>Quebec</region>
          <code>J2J 2V2</code>
          <country>Canada</country>
        </postal>
        <phone>+14503750556</phone>
        <email>michel.veillette@trilliantinc.com</email>
      </address>
    </author>
    <author initials="A.P." surname="Pelov" fullname="Alexander Pelov" role="editor">
      <organization>Acklio</organization>
      <address>
        <postal>
          <street>2bis rue de la Chataigneraie</street>
          <city>Cesson-Sevigne</city>
          <region>Bretagne</region>
          <code>35510</code>
          <country>France</country>
        </postal>
        <email>a@ackl.io</email>
      </address>
    </author>
    <author initials="A.S." surname="Somaraju" fullname="Abhinav Somaraju">
      <organization>Tridonic GmbH &amp; Co KG</organization>
      <address>
        <postal>
          <street>Farbergasse 15</street>
          <city>Dornbirn</city>
          <region>Vorarlberg</region>
          <code>6850</code>
          <country>Austria</country>
        </postal>
        <phone>+43664808926169</phone>
        <email>abhinav.somaraju@tridonic.com</email>
      </address>
    </author>
    <author initials="R.T." surname="Turner" fullname="Randy Turner">
      <organization>Landis+Gyr</organization>
      <address>
        <postal>
          <street>30000 Mill Creek Ave</street> <street>Suite 100</street>
          <city>Alpharetta</city>
          <region>GA</region>
          <code>30022</code>
          <country>US</country>
        </postal>
        <phone>++16782581292</phone>
        <email>randy.turner@landisgyr.com</email>
        <uri>http://www.landisgyr.com/</uri>
      </address>
    </author>
    <author initials="A.M." surname="Minaburo" fullname="Ana Minaburo">
      <organization>Acklio</organization>
      <address>
        <postal>
          <street>2bis rue de la châtaigneraie</street>
          <city>Cesson-Sévigné</city>
          <region>Bretagne</region>
          <code>35510</code>
          <country>France</country>
        </postal>
        <email>ana@ackl.io</email>
      </address>
    </author>

    <date year="2016" month="October" day="31"/>

    <area>Applications and Real-Time Area (art)</area>
    <workgroup>Internet Engineering Task Force</workgroup>
    <keyword>CBOR</keyword>

    <abstract>


<t>This document defines encoding rules for serializing configuration data, state data, RPC input and RPC output, Action input, Action output and notifications defined within YANG modules using the Concise Binary Object Representation (CBOR) <xref target="RFC7049"/>.</t>



    </abstract>


  </front>

  <middle>


<section anchor="introduction" title="Introduction">

<t>The specification of the YANG 1.1 data modelling language <xref target="RFC7950"/> defines an XML encoding for data instances, i.e. contents of configuration datastores, state data, RPC inputs and outputs, action inputs and outputs, and event notifications.</t>

<t>A new set of encoding rules has been defined to allow the use of the same data models in environments based on the JavaScript Object Notation (JSON) Data Interchange Format <xref target="RFC7159"/>. This is accomplished in the JSON Encoding of Data Modeled with YANG specification <xref target="RFC7951"/>.</t>

<t>The aim of this document is to define a set of encoding rules for the Concise Binary Object Representation (CBOR) <xref target="RFC7049"/>. The resulting encoding is more compact compared to XML and JSON and more suitable for Constrained Nodes and/or Constrained Networks as defined by <xref target="RFC7228"/>.</t>

</section>
<section anchor="terminology-and-notation" title="Terminology and Notation">

<t>The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”,
“SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to
be interpreted as described in <xref target="RFC2119"/>.</t>

<t>The following terms are defined in <xref target="RFC7950"/>:</t>

<t><list style="symbols">
  <t>action</t>
  <t>anydata</t>
  <t>anyxml</t>
  <t>data node</t>
  <t>data tree</t>
  <t>module</t>
  <t>notification</t>
  <t>RPC</t>
  <t>schema node</t>
  <t>schema tree</t>
  <t>submodule</t>
</list></t>

<t>The following terms are defined in <xref target="RFC7951"/>:</t>

<t><list style="symbols">
  <t>member name</t>
  <t>name of an identity</t>
  <t>namespace-qualified</t>
</list></t>

<t>This specification also makes use of the following terminology:</t>

<t><list style="symbols">
  <t>child: A schema node defined within a collection such as a container, a list, a case, a notification, an RPC input, an RPC output, an action input, an action output.</t>
  <t>delta : Difference between the SID assigned to the current schema node and the SID assigned to the parent.</t>
  <t>parent: The collection in which a schema node is defined.</t>
  <t>structured identifier or SID: Unsigned integer used to identify different YANG items.</t>
</list></t>

<section anchor="cbor-diagnostic-notation" title="CBOR diagnostic notation">

<t>Within this document, CBOR binary contents are represented using an equivalent textual form called CBOR diagnostic notation as defined in <xref target="RFC7049"/> section 6. This notation is used strictly for documentation purposes and is never used in the data serialization. <xref target=" diagnostic-notation-summary"/> below provides a summary of this notation.</t>

<texttable title="CBOR diagnostic notation summary" anchor="diagnostic-notation-summary">
      <ttcol align='left'>CBOR content</ttcol>
      <ttcol align='left'>CBOR type</ttcol>
      <ttcol align='left'>Diagnostic notation</ttcol>
      <ttcol align='left'>Example</ttcol>
      <ttcol align='left'>CBOR encoding</ttcol>
      <c>Unsigned integer</c>
      <c>0</c>
      <c>Decimal digits</c>
      <c>123</c>
      <c>18 7b</c>
      <c>Negative integer</c>
      <c>1</c>
      <c>Decimal digits prefixed by a minus sign</c>
      <c>-123</c>
      <c>38 7a</c>
      <c>Byte string</c>
      <c>2</c>
      <c>Hexadecimal value enclosed between single quotes and prefixed by an ‘h’</c>
      <c>h’f15c’</c>
      <c>42 f15c</c>
      <c>Text string</c>
      <c>3</c>
      <c>String of Unicode characters enclosed between double quotes</c>
      <c>“txt”</c>
      <c>63 747874</c>
      <c>Array</c>
      <c>4</c>
      <c>Comma-separated list of values within square brackets</c>
      <c>[ 1, 2 ]</c>
      <c>82 01 02</c>
      <c>Map</c>
      <c>5</c>
      <c>Comma-separated list of key : value pairs within curly braces</c>
      <c>{ 1: 123, 2: 456 }</c>
      <c>a2 01187b 021901c8</c>
      <c>Boolean</c>
      <c>7/20</c>
      <c>false</c>
      <c>false</c>
      <c>f4</c>
      <c>&#160;</c>
      <c>7/21</c>
      <c>true</c>
      <c>true</c>
      <c>f5</c>
      <c>Null</c>
      <c>7/22</c>
      <c>null</c>
      <c>null</c>
      <c>f6</c>
      <c>Not assigned</c>
      <c>7/23</c>
      <c>undefined</c>
      <c>undefined</c>
      <c>f7</c>
</texttable>

<t>The following extensions to the CBOR diagnostic notation are supported:</t>

<t><list style="symbols">
  <t>Comments can be added to the end of each line. Any characters after a Pound sign (‘#’) outside of a string, up to the end of the line, are treated as a comment.</t>
  <t>Deltas are represented as numbers preceded by a ‘+’ or ‘–’ sign. The use of the ‘+’ sign for positive deltas represents an extension to the CBOR diagnostic notation as defined by <xref target="RFC7049"/> section 6.</t>
</list></t>

</section>
</section>
<section anchor="properties-of-the-cbor-encoding" title="Properties of the CBOR Encoding">

<t>This document defines CBOR encoding rules for YANG schema trees and their subtrees.</t>

<t>Basic schema nodes such as leaf, leaf-list, list, anydata and anyxml can be encoded standalone. In this case, only the value of this schema node is encoded in CBOR. Identification of this value needs to be provided by some external means when required.</t>

<t>A collection such as container, list instance, notification, RPC input, RPC output, action input and action output is serialized using a CBOR map in which each child schema node is encoded using a key and a value. This specification supports two type of keys; SID as defined in <xref target="I-D.ietf-core-sid"/> and member names as defined in <xref target="RFC7951"/>. Each of these key type is encoded using a specific CBOR type which allows their interpretation during the deserialization process. The end user of this mapping specification (e.g. RESFCONF, CoMI) can mandate the use of a specific key type.</t>

<t>In order to minimize the size of the encoded data, the proposed mapping avoid any unnecessary meta-information beyond those natively supported by CBOR. For instance, CBOR tags are used solely in the case of the union datatype to distinguish explicitly the use of different YANG datatypes encoded using the same CBOR major type.</t>

<t>It is expected that application entities generating and decoding CBOR contents have enough knowledge about the information processed in order to perform the expected task without the need of such extra meta-information.</t>

</section>
<section anchor="instance-encoding" title="Encoding of YANG Data Node Instances">

<t>Schema node instances defined using the YANG modeling language are encoded using CBOR <xref target="RFC7049"/> based on the rules defined in this section. We assume that the reader is
already familiar with both YANG <xref target="RFC7950"/> and CBOR <xref target="RFC7049"/>.</t>

<section anchor="the-leaf-data-node" title="The ‘leaf’ Data Node">

<t>Leafs MUST be encoded based on the encoding rules specified in <xref target="data-types-mapping"/>.</t>

</section>
<section anchor="container" title="The ‘container’ Data Node">

<t>Collections such as containers, list instances, notifications, RPC inputs, RPC outputs, action inputs and action outputs MUST be encoded using a CBOR map data item (major type 5). A map is comprised of pairs of data items, with each data item consisting of a key and a value. Each key within the CBOR map is set to a data node identifier, each value is set to the value of this data node instance.</t>

<t>This specification supports two type of keys; SID as defined in <xref target="I-D.ietf-core-sid"/> encoded using CBOR unsigned or signed integers and member names as defined in <xref target="RFC7951"/> encoded using CBOR text strings. The use of CBOR byte strings for keys is reserved for future extensions.</t>

<section anchor="container-with-sid" title="SIDs as keys">

<t>Keys implemented using SIDs MUST be encoded using a CBOR unsigned integer (major type 0) or CBOR signed integer (major type 1), depending on the actual value. Keys are set to the delta of the associated SID, delta values are computed as follows:</t>

<t><list style="symbols">
  <t>The delta value is equal to the SID of the current schema node minus the SID of the parent schema node. When no parent exists in the context of use of this container, the delta is set to the SID of the current schema node (a parent with SID equal to zero is assumed).</t>
  <t>Delta values may result in a negative number, clients and servers MUST support negative deltas.</t>
</list></t>

<t>The following example shows the encoding of the ‘system’ container using the SIDs defined in <xref target="I-D.ietf-core-sid"/> Appendix C.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<!-- draft-iab-xml2rfc-03.txt uses lower-case "yang" as the type -->

<figure><artwork type="yang"><![CDATA[
typedef date-and-time {
  type string {
    pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]
             \d{2}:\d{2})';
  }
}

container system {
  leaf hostname {
    type inet:domain-name;

  container clock {
    leaf current-datetime {
      type date-and-time;
    }

    leaf boot-datetime {
      type date-and-time;
    }
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation:</t>

<figure><artwork type="CBORdiag"><![CDATA[
{
  1717 : {                              # clock  (SID 1717)
    +2 : "2015-10-02T14:47:24Z-05:00",  # current-datetime (SID 1719)
    +1 : "2015-09-15T09:12:58Z-05:00"   # boot-datetime (SID 1718)
  }
}
]]></artwork></figure>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
a1                                      # map(1)
   19 06b5                              # unsigned(1717)
   a2                                   # map(2)
      02                                # unsigned(2)
      78 1a                             # text(26)
      323031352d31302d30325431343a34373a32345a2d30353a3030
      01                                # unsigned(1)
      78 1a                             # text(26)
      323031352d30392d31355430393a31323a35385a2d30353a3030
]]></artwork></figure>

</section>
<section anchor="member-names-as-keys" title="Member names as keys">

<t>Keys implemented using member names MUST be encoded using a CBOR text string data item (major type 3). A namespace-qualified member name MUST be used for all members of a top-level collection, and then also whenever the namespaces of the schema node and its parent are different. In all other cases, the simple form of the member name MUST be used. Names and namespaces are defined in <xref target="RFC7951"/> section 4.</t>

<t>The following example shows the encoding of the ‘system’ container using names. This example is described in <xref target="container-with-sid"/>.</t>

<t>CBOR diagnostic notation:</t>

<figure><artwork type="CBORdiag"><![CDATA[
{
  "ietf-system:clock" : {
    "current-datetime" : "2015-10-02T14:47:24Z-05:00",
    "boot-datetime" : "2015-09-15T09:12:58Z-05:00"
  }
}
]]></artwork></figure>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
a1                                          # map(1)
   71                                       # text(17)
      696574662d73797374656d3a636c6f636b    # "ietf-system:clock"
   a2                                       # map(2)
      70                                    # text(16)
         63757272656e742d6461746574696d65   # "current-datetime"
      78 1a                                 # text(26)
         323031352d31302d30325431343a34373a32345a2d30353a3030
      6d                                    # text(13)
         626f6f742d6461746574696d65         # "boot-datetime"
      78 1a                                 # text(26)
         323031352d30392d31355430393a31323a35385a2d30353a3030
]]></artwork></figure>

</section>
</section>
<section anchor="leaf-list" title="The ‘leaf-list’ Data Node">

<t>A leaf-list MUST be encoded using a CBOR array data item (major type 4).
Each entry of this array MUST be encoded using the rules defined by the YANG type specified.</t>

<t>The following example shows the encoding the ‘search’ leaf-list containing the two entries, “ietf.org” and “ieee.org”.</t>

<t>Definition example <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
typedef domain-name {
  type string {
    length "1..253";
    pattern '((([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9].)
             *([a-zA-Z0-9_]([a-zA-Z0-9\-_]){0,61})?[a-zA-Z0-9]\.?
             )|\.';
  }
}

leaf-list search {
  type domain-name;
  ordered-by user;
}
]]></artwork></figure>

<t>CBOR diagnostic notation: [ “ietf.org”, “ieee.org” ]</t>

<t>CBOR encoding: 82  68 696574662e6f7267  68 696565652e6f7267</t>

</section>
<section anchor="list" title="The ‘list’ Data Node">

<t>A list MUST be encoded using a CBOR array data item (major type 4). Each list instance within this CBOR array is encoded using a CBOR map data item (major type 5) based on the same rules as a YANG container as defined in <xref target="container"/>.</t>

<section anchor="list-with-sid" title="SIDs as keys">

<t>The follwoing example show the encoding a the ‘server’ list using the SIDs defined in <xref target="I-D.ietf-core-sid"/> Appendix C. It is important to note that the protocol or method using this mapping may carry a parent SID or may have the knowledge of this parent SID based on its context. In these cases, delta encoding can be performed based on this parent SID which minimizes the size of the encoded data.</t>

<t>The following example shows the encoding of the ‘server’ list containing two enties. SIDs used in this example are defined in <xref target="I-D.ietf-core-sid"/> Appendix C. It is important to note that the protocol or method using this mapping may carry a parent SID or may have the knowledge of this parent SID based on its context. In these cases, delta encoding can be performed based on this parent SID which minimizes the size of the encoded data.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
list server {
  key name;

  leaf name {
    type string;
  }
  choice transport {
    case udp {
      container udp {
        leaf address {
          type host;
          mandatory true;
        }
        leaf port {
          type port-number;
        }
      }
    }
  }
  leaf association-type {
    type enumeration {
      enum server;
      enum peer;
      enum pool;
    }
    default server;
  }
  leaf iburst {
    type boolean;
    default false;
  }
  leaf prefer {
    type boolean;
    default false;
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation:</t>

<figure><artwork type="CBORdiag"><![CDATA[
[
  {
    1755 : "NRC TIC server",          # name (SID 1755)
    1757 : {                          # udp (SID 1757)
      +1 : "tic.nrc.ca",              # address (SID 1758)
      +2 : 123                        # port (SID 1759)
    },
    1753 : 0,                         # association-type (SID 1753)
    1754 : false,                     # iburst (SID 1754)
    1756 : true                       # prefer (SID 1756)
  },
  {
    1755 : "NRC TAC server",          # name (SID 1755)
    1757 : {                          # udp (SID 1757)
      +1 : "tac.nrc.ca"               # address (SID 1758)
    }
  }
]
]]></artwork></figure>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
82                                    # array(2)
   a5                                 # map(5)
      19 06db                         # unsigned(1755)
      6e                              # text(14)
         4e52432054494320736572766572 # "NRC TIC server"
      19 06dd                         # unsigned(1757)
      a2                              # map(2)
         01                           # unsigned(1)
         6a                           # text(10)
            7469632e6e72632e6361      # "tic.nrc.ca"
         02                           # unsigned(2)
         18 7b                        # unsigned(123)
      19 06d9                         # unsigned(1753)
      00                              # unsigned(0)
      19 06da                         # unsigned(1754)
      f4                              # primitive(20)
      19 06dc                         # unsigned(1756)
      f5                              # primitive(21)
   a2                                 # map(2)
      19 06db                         # unsigned(1755)
      6e                              # text(14)
         4e52432054414320736572766572 # "NRC TAC server"
      19 06dd                         # unsigned(1757)
      a1                              # map(1)
         01                           # unsigned(1)
         6a                           # text(10)
            7461632e6e72632e6361      # "tac.nrc.ca"
]]></artwork></figure>

</section>
<section anchor="member-names-as-keys-1" title="Member names as keys">

<t>The following example shows the encoding of the ‘server’ list using names. This example is described in <xref target="list-with-sid"/>.</t>

<t>CBOR diagnostic notation:</t>

<figure><artwork type="CBORdiag"><![CDATA[
[
  {
    "ietf-system:name" : "NRC TIC server",
    "ietf-system:udp" : {
      "address" : "tic.nrc.ca",
      "port" : 123
    },
    "ietf-system:association-type" : 0,
    "ietf-system:iburst" : false,
    "ietf-system:prefer" : true
  },
  {
    "ietf-system:name" : "NRC TAC server",
    "ietf-system:udp" : {
      "address" : "tac.nrc.ca"
    }
  }
]
]]></artwork></figure>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
82                                            # array(2)
   a5                                         # map(5)
      70                                      # text(16)
         696574662d73797374656d3a6e616d65     # "ietf-system:name"
      6e                                      # text(14)
         4e52432054494320736572766572         # "NRC TIC server"
      6f                                      # text(15)
         696574662d73797374656d3a756470       # "ietf-system:udp"
      a2                                      # map(2)
         67                                   # text(7)
            61646472657373                    # "address"
         6a                                   # text(10)
            7469632e6e72632e6361              # "tic.nrc.ca"
         64                                   # text(4)
            706f7274                          # "port"
         18 7b                                # unsigned(123)
      78 1c                                   # text(28)
         696574662d73797374656d3a6173736f63696174696f6e2d74797065
      00                                      # unsigned(0)
      72                                      # text(18)
         696574662d73797374656d3a696275727374 # "ietf-system:iburst"
      f4                                      # primitive(20)
      72                                      # text(18)
         696574662d73797374656d3a707265666572 # "ietf-system:prefer"
      f5                                      # primitive(21)
   a2                                         # map(2)
      70                                      # text(16)
         696574662d73797374656d3a6e616d65     # "ietf-system:name"
      6e                                      # text(14)
         4e52432054414320736572766572         # "NRC TAC server"
      6f                                      # text(15)
         696574662d73797374656d3a756470       # "ietf-system:udp"
      a1                                      # map(1)
         67                                   # text(7)
            61646472657373                    # "address"
         6a                                   # text(10)
            7461632e6e72632e6361              # "tac.nrc.ca"
]]></artwork></figure>

</section>
</section>
<section anchor="the-anydata-data-node" title="The ‘anydata’ Data Node">

<t>An anydata serves as a container for an arbitrary set of schema nodes that otherwise appear as normal YANG-modeled data. An anydata instance is encoded using the same rules as a container, i.e., CBOR map. The requirement that anydata content can be modeled by YANG implies the following:</t>

<t><list style="symbols">
  <t>Keys of any inner data nodes MUST be set to valid deltas or member names.</t>
  <t>The CBOR array MUST contain either unique scalar values (as a leaf-list, see <xref target="leaf-list"/>), or maps (as a list, see <xref target="list"/>).</t>
  <t>Values MUST follow the encoding rules of one of the datatypes listed in <xref target="data-types-mapping"/>.</t>
</list></t>

</section>
<section anchor="the-anyxml-data-node" title="The ‘anyxml’ Data Node">

<t>An anyxml schema node is used to serialize an arbitrary CBOR content, i.e., its value can be any CBOR binary object.</t>

</section>
</section>
<section anchor="data-types-mapping" title="Representing YANG Data Types in CBOR">

<section anchor="the-unsigned-integer-types" title="The unsigned integer Types">

<t>Leafs of type uint8, uint16, uint32 and uint64 MUST be encoded using a CBOR
unsigned integer data item (major type 0).</t>

<t>The following example shows the encoding of leaf ‘mtu’ set to 1280 bytes.</t>

<t>Definition example from <xref target="RFC7277"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf mtu {
  type uint16 {
    range "68..max";
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: 1280</t>

<t>CBOR encoding: 19 0500</t>

</section>
<section anchor="the-integer-types" title="The integer Types">

<t>Leafs of type int8, int16, int32 and int64 MUST be encoded using either CBOR
unsigned integer (major type 0) or CBOR signed integer (major type 1), depending
on the actual value.</t>

<t>The following example shows the encoding of leaf ‘timezone-utc-offset’ set to -300 minutes.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf timezone-utc-offset {
  type int16 {
    range "-1500 .. 1500";
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: -300</t>

<t>CBOR encoding: 39 012b</t>

</section>
<section anchor="the-decimal64-type" title="The ‘decimal64’ Type">
<t>Leafs of type decimal64 MUST be encoded using a decimal fraction as defined in <xref target="RFC7049"/> section 2.4.3.</t>

<t>The following example shows the encoding of leaf ‘my-decimal’ set to 2.57.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf my-decimal {
  type decimal64 {
    fraction-digits 2;
    range "1 .. 3.14 | 10 | 20..max";
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: 4([-2, 257])</t>

<t>CBOR encoding: c4 82 21 19 0101</t>

</section>
<section anchor="the-string-type" title="The ‘string’ Type">

<t>Leafs of type string MUST be encoded using a CBOR text string data item (major
type 3).</t>

<t>The following example shows the encoding of leaf ‘name’ set to “eth0”.</t>

<t>Definition example from <xref target="RFC7223"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf name {
  type string;
}
]]></artwork></figure>

<t>CBOR diagnostic notation: “eth0”</t>

<t>CBOR encoding: 64 65746830</t>

</section>
<section anchor="the-boolean-type" title="The ‘boolean’ Type">

<t>Leafs of type boolean MUST be encoded using a CBOR true (major type 7, additional
information 21) or false data item (major type 7, additional information
20).</t>

<t>The following example shows the encoding of leaf ‘enabled’ set to ‘true’.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf enabled {
  type boolean;
}
]]></artwork></figure>

<t>CBOR diagnostic notation: true</t>

<t>CBOR encoding: f5</t>

</section>
<section anchor="the-enumeration-type" title="The ‘enumeration’ Type">

<t>Leafs of type enumeration MUST be encoded using a CBOR unsigned integer (major type 0) or CBOR signed integer (major type 1), depending on the actual value. Enumeration values are either explicitly assigned using the YANG statement ‘value’ or automatically assigned based on the algorithm defined in <xref target="RFC7950"/> section 9.6.4.2.</t>

<t>The following example shows the encoding of leaf ‘oper-status’ set to ‘testing’.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf oper-status {
  type enumeration {
    enum up { value 1; }
    enum down { value 2; }
    enum testing { value 3; }
    enum unknown { value 4; }
    enum dormant { value 5; }
    enum not-present { value 6; }
    enum lower-layer-down { value 7; }
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: 3</t>

<t>CBOR encoding: 03</t>

</section>
<section anchor="the-bits-type" title="The ‘bits’ Type">

<t>Leafs of type bits MUST be encoded using a CBOR byte string data item (major
type 2). Bits position are either explicitly assigned using the YANG statement
‘position’ or automatically assigned based on the algorithm defined in <xref target="RFC7950"/> section 9.7.4.2.</t>

<t>Bits position 0 to 7 are assigned to the first byte within the byte
string, bits 8 to 15 to the second byte, and subsequent bytes are assigned
similarly. Within each byte, bits are assigned from least to most significant.</t>

<t>The following example shows the encoding of leaf ‘mybits’ with the ‘disable-nagle’ and ‘10-Mb-only’ flags set.</t>

<t>Definition example from <xref target="RFC7950"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf mybits {
  type bits {
    bit disable-nagle {
      position 0;
    }
    bit auto-sense-speed {
      position 1;
    }
    bit 10-Mb-only {
      position 2;
    }
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: h’05’</t>

<t>CBOR encoding: 41 05</t>

</section>
<section anchor="the-binary-type" title="The ‘binary’ Type">

<t>Leafs of type binary MUST be encoded using a CBOR byte string data item (major
type 2).</t>

<t>The following example shows the encoding of leaf ‘aes128-key’ set to 0x1f1ce6a3f42660d888d92a4d8030476e.</t>

<t>Definition example:</t>

<figure><artwork type="yang"><![CDATA[
leaf aes128-key {
  type binary {
    length 16;
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: h’1f1ce6a3f42660d888d92a4d8030476e’</t>

<t>CBOR encoding: 50 1f1ce6a3f42660d888d92a4d8030476e</t>

</section>
<section anchor="the-leafref-type" title="The ‘leafref’ Type">

<t>Leafs of type leafref MUST be encoded using the rules of the schema node referenced
by the ‘path’ YANG statement.</t>

<t>The following example shows the encoding of leaf ‘interface-state-ref’ set to the value “eth1”.</t>

<t>Definition example from <xref target="RFC7223"/>:</t>

<figure><artwork type="yang"><![CDATA[
typedef interface-state-ref {
  type leafref {
    path "/interfaces-state/interface/name";
  }
}

container interfaces-state {
  list interface {
    key "name";
    leaf name {
      type string;
    }
    leaf-list higher-layer-if {
      type interface-state-ref;
    }
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: “eth1”</t>

<t>CBOR encoding: 64 65746831</t>

</section>
<section anchor="the-identityref-type" title="The ‘identityref’ Type">

<t>This specification supports two approaches for encoding identityref, a SID as defined in <xref target="I-D.ietf-core-sid"/> or a name as defined in <xref target="RFC7951"/> section 6.8.</t>

<section anchor="identityref-with-sid" title="SIDs as identityref">

<t>SIDs are globally unique and may be used as identityref.  This approach is both compact and simple to implement.  When SIDs are
used, identityref MUST be encoded using a CBOR unsigned integer data item (major type 0) and set to a SID allocated from a registered SID range.</t>

<t>The following example shows the encoding of leaf ‘type’ set to the value ‘iana-if-type:ethernetCsmacd’ (SID 1180).</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
identity interface-type {
}

identity iana-interface-type {
  base interface-type;
}

identity ethernetCsmacd {
  base iana-interface-type;
}

leaf type {
  type identityref {
    base interface-type;
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: 1180</t>

<t>CBOR encoding: 19 049c</t>

</section>
<section anchor="name-as-identityref" title="Name as identityref">

<t>Alternatively, an identityref may be encoded using a name as defined in <xref target="RFC7951"/> section 6.8.  When names are used, identityref MUST be encoded using a CBOR text string data item (major type 3). If the identity is defined in another module than the leaf node containing the identityref value, the namespace-qualified form MUST be used. Otherwise, both the simple and namespace-qualified forms are permitted. Names and namespaces are defined in <xref target="RFC7951"/> section 4.</t>

<t>The following example shows the encoding of the identity ‘iana-if-type:ethernetCsmacd’ using its name. This example is described in <xref target="identityref-with-sid"/>.</t>

<t>CBOR diagnostic notation: “iana-if-type:ethernetCsmacd”</t>

<t>CBOR encoding: 78 1b 69616e612d69662d747970653a65746865726e657443736d616364</t>

</section>
</section>
<section anchor="the-empty-type" title="The ‘empty’ Type">

<t>Leafs of type empty MUST be encoded using the CBOR null value (major type
7, additional information 22).</t>

<t>The following example shows the encoding of leaf ‘is-router’ when present.</t>

<t>Definition example from <xref target="RFC7277"/>:</t>

<figure><artwork type="yang"><![CDATA[
leaf is-router {
  type empty;
}
]]></artwork></figure>

<t>CBOR diagnostic notation: null</t>

<t>CBOR encoding: f6</t>

</section>
<section anchor="the-union-type" title="The ‘union’ Type">

<t>Leafs of type union MUST be encoded using the rules associated with one of the types listed.
When used in a union, the following YANG datatypes are prefixed by CBOR tag to avoid confusion
between different YANG datatypes encoded using the same CBOR major type.</t>

<t><list style="symbols">
  <t>bits</t>
  <t>enumeration</t>
  <t>identityref</t>
  <t>instance-identifier</t>
</list></t>

<t>See <xref target="tag-registry"/> for more information about these CBOR tags.</t>

<t>The following example shows the encoding of leaf ‘ip-address’ when set to “2001:db8:a0b:12f0::1”.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
typedef ipv4-address {
  type string {
  pattern '(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}
           ([0-9][1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}
           \p{L}]+)?';
  }
}

typedef ipv6-address {
  type string {
    pattern '((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a
             -fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0
             -9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0
             -9]?[0-9])))(%[\p{N}\p{L}]+)?';
    pattern '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|((([^:]+:)*[^:]+)
             ?::(([^:]+:)*[^:]+)?)(%.+)?';
  }
}

typedef ip-address {
  type union {
    type ipv4-address;
    type ipv6-address;
  }
}

leaf address {
  type inet:ip-address;
}
]]></artwork></figure>

<t>CBOR diagnostic notation: “2001:db8:a0b:12f0::1”</t>

<t>CBOR encoding: 74 323030313a6462383a6130623a313266303a3a31</t>

</section>
<section anchor="the-instance-identifier-type" title="The ‘instance-identifier’ Type">

<t>This specification supports two approaches for encoding an instance-identifier, one based on SIDs as defined in <xref target="I-D.ietf-core-sid"/> and one based on names as defined in <xref target="RFC7951"/> section 6.11.</t>

<section anchor="instance-identifier-with-sid" title="SIDs as instance-identifier">

<t>SIDs uniquely identify a data node. In the case of a single instance data node, a data node defined at the root of a YANG module or submodule or data nodes defined within a container, the SID is sufficient to identify this instance.</t>

<t>In the case of a data node member of a YANG list, a SID is combined with the list key(s) to identify each instance within the YANG list(s).</t>

<t>Single instance data nodes MUST be encoded using a CBOR unsigned integer data item (major type 0) and set to the targeted data node SID.</t>

<t>Data nodes member of a YANG list MUST be encoded using a CBOR array data item (major type 4) containing the following entries:</t>

<t><list style="symbols">
  <t>The first entry MUST be encoded as a CBOR unsigned integer data item (major type 0) and set to the targeted data node SID.</t>
  <t>The following entries MUST contain the value of each key required to identify the instance of the targeted data node. These keys MUST be ordered as defined in the ‘key’ YANG statement, starting from top level list, and follow by each of the subordinate list(s).</t>
</list></t>

<t><spanx style="strong">First example:</spanx></t>

<t>The following example shows the encoding of a leaf of type instance-identifier which identify the data node “/system/contact” (SID 1737).</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
container system {

  leaf contact {
    type string;
  }

  leaf hostname {
    type inet:domain-name;
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: 1737</t>

<t>CBOR encoding: 19 06c9</t>

<t><spanx style="strong">Second example:</spanx></t>

<t>The following example shows the encoding of a leaf of type instance-identifier which identify the data node instance “/system/authentication/user/authorized-key/key-data” (SID 1730) for user name “bob” and authorized-key “admin”.</t>

<t>Definition example from <xref target="RFC7317"/>:</t>

<figure><artwork type="yang"><![CDATA[
list user {
  key name;

  leaf name {
    type string;
  }
  leaf password {
    type ianach:crypt-hash;
  }

  list authorized-key {
    key name;

    leaf name {
      type string;
    }
    leaf algorithm {
      type string;
    }
    leaf key-data {
      type binary;
  }
}
]]></artwork></figure>

<t>CBOR diagnostic notation: [1730, “bob”, “admin”]</t>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
83                      # array(3)
   19 06c2              # unsigned(1730)
   63                   # text(3)
      626f62            # "bob"
   65                   # text(5)
      61646d696e        # "admin"
]]></artwork></figure>

<t><spanx style="strong">Third example:</spanx></t>

<t>The following example shows the encoding of a leaf of type instance-identifier which identify the list instance “/system/authentication/user” (SID 1726) corresponding to the user name “jack”.</t>

<t>CBOR diagnostic notation: [1726, “jack”]</t>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
82                      # array(2)
   19 06be              # unsigned(1726)
   64                   # text(4)
      6a61636b          # "jack"
]]></artwork></figure>

</section>
<section anchor="names-as-instance-identifier" title="Names as instance-identifier">

<t>The use of names as instance-identifier is defined in <xref target="RFC7951"/> section 6.11. The resulting xpath MUST be encoded using a CBOR text string data item (major type 3).</t>

<t><spanx style="strong">First example:</spanx></t>

<t>This example is described in <xref target="instance-identifier-with-sid"/>.</t>

<t>CBOR diagnostic notation: “/ietf-system:system/contact”</t>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
78 1c 2f20696574662d73797374656d3a73797374656d2f636f6e74616374
]]></artwork></figure>

<t><spanx style="strong">Second example:</spanx></t>

<t>This example is described in <xref target="instance-identifier-with-sid"/>.</t>

<t>CBOR diagnostic notation:</t>

<figure><artwork type="CBORdiag"><![CDATA[
"/ietf-system:system/authentication/user[name='bob']/authorized-key
[name='admin']/key-data"
]]></artwork></figure>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
78 59
   2f696574662d73797374656d3a73797374656d2f61757468656e74696361
   74696f6e2f757365725b6e616d653d27626f62275d2f617574686f72697a
   65642d6b65795b6e616d653d2761646d696e275d2f6b65792d64617461
]]></artwork></figure>

<t><spanx style="strong">Third example:</spanx></t>

<t>This example is described in <xref target="instance-identifier-with-sid"/>.</t>

<t>CBOR diagnostic notation:</t>

<figure><artwork type="CBORdiag"><![CDATA[
"/ietf-system:system/authentication/user[name='bob']"
]]></artwork></figure>

<t>CBOR encoding:</t>

<figure><artwork type="CBORbytes"><![CDATA[
78 33
   2f696574662d73797374656d3a73797374656d2f61757468656e74696361
   74696f6e2f757365725b6e616d653d27626f62275d
]]></artwork></figure>

</section>
</section>
</section>
<section anchor="security-considerations" title="Security Considerations">

<t>The security considerations of <xref target="RFC7049"/> and <xref target="RFC7950"/> apply.</t>

<t>This document defines an alternative encoding for data modeled in the YANG data modeling language. As such, this encoding does not contribute any new security issues in addition of those identified for the specific protocol or context for which it is used.</t>

<t>To minimize security risks, software on the receiving side SHOULD reject all messages that do not comply to the rules of this document and reply with an appropriate error message to the sender.</t>

</section>
<section anchor="iana-considerations" title="IANA Considerations">

<section anchor="tag-registry" title="Tags Registry">

<t>This specification requires the assignment of CBOR tags for the following YANG datatypes.
These tags are added to the Tags Registry as defined in section 7.2 of <xref target="RFC7049"/>.</t>

<texttable align="left">
      <ttcol align='left'>Tag</ttcol>
      <ttcol align='left'>Data Item</ttcol>
      <ttcol align='left'>Semantics</ttcol>
      <ttcol align='left'>Reference</ttcol>
      <c>40</c>
      <c>bits</c>
      <c>YANG bits datatype</c>
      <c>RFC XXXX</c>
      <c>41</c>
      <c>enumeration</c>
      <c>YANG enumeration datatype</c>
      <c>RFC XXXX</c>
      <c>42</c>
      <c>identityref</c>
      <c>YANG identityref datatype</c>
      <c>RFC XXXX</c>
      <c>43</c>
      <c>instance-identifier</c>
      <c>YANG instance-identifier datatype</c>
      <c>RFC XXXX</c>
</texttable>

<t>// RFC Ed.: update Tag values using allocated tags if needed and remove this note
// RFC Ed.: replace XXXX with RFC number and remove this note</t>

</section>
</section>
<section anchor="acknowledgments" title="Acknowledgments">

<t>This document has been largely inspired by the extensive works done by Andy Bierman and Peter van der Stok on <xref target="I-D.vanderstok-core-comi"/>. <xref target="RFC7951"/> has also been a critical input to this work. The authors would like to thank the authors and contributors to these two drafts.</t>

<t>The authors would also like to acknowledge the review, feedback, and comments from Ladislav Lhotka and Juergen Schoenwaelder.</t>

</section>


  </middle>

  <back>

    <references title='Normative References'>





<reference  anchor='RFC7950' target='http://www.rfc-editor.org/info/rfc7950'>
<front>
<title>The YANG 1.1 Data Modeling Language</title>
<author initials='M.' surname='Bjorklund' fullname='M. Bjorklund' role='editor'><organization /></author>
<date year='2016' month='August' />
<abstract><t>YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.  This document describes the syntax and semantics of version 1.1 of the YANG language.  YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification.  There are a small number of backward incompatibilities from YANG version 1.  This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t></abstract>
</front>
<seriesInfo name='RFC' value='7950'/>
<seriesInfo name='DOI' value='10.17487/RFC7950'/>
</reference>



<reference  anchor='RFC2119' target='http://www.rfc-editor.org/info/rfc2119'>
<front>
<title>Key words for use in RFCs to Indicate Requirement Levels</title>
<author initials='S.' surname='Bradner' fullname='S. Bradner'><organization /></author>
<date year='1997' month='March' />
<abstract><t>In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t></abstract>
</front>
<seriesInfo name='BCP' value='14'/>
<seriesInfo name='RFC' value='2119'/>
<seriesInfo name='DOI' value='10.17487/RFC2119'/>
</reference>



<reference  anchor='RFC7049' target='http://www.rfc-editor.org/info/rfc7049'>
<front>
<title>Concise Binary Object Representation (CBOR)</title>
<author initials='C.' surname='Bormann' fullname='C. Bormann'><organization /></author>
<author initials='P.' surname='Hoffman' fullname='P. Hoffman'><organization /></author>
<date year='2013' month='October' />
<abstract><t>The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of extremely small code size, fairly small message size, and extensibility without the need for version negotiation.  These design goals make it different from earlier binary serializations such as ASN.1 and MessagePack.</t></abstract>
</front>
<seriesInfo name='RFC' value='7049'/>
<seriesInfo name='DOI' value='10.17487/RFC7049'/>
</reference>




    </references>

    <references title='Informative References'>





<reference anchor='I-D.ietf-core-sid'>
<front>
<title>YANG Schema Item iDentifier (SID)</title>

<author initials='A' surname='Somaraju' fullname='Abhinav Somaraju'>
    <organization />
</author>

<author initials='M' surname='Veillette' fullname='Michel Veillette'>
    <organization />
</author>

<author initials='A' surname='Pelov' fullname='Alexander Pelov'>
    <organization />
</author>

<author initials='R' surname='Turner' fullname='Randy Turner'>
    <organization />
</author>

<author initials='A' surname='Minaburo' fullname='Ana Minaburo'>
    <organization />
</author>

<date month='October' day='31' year='2016' />

<abstract><t>YANG Schema Item iDentifiers (SID) are used to identify different YANG items using a numeric identifier.  This document defines the registration and assignment processes of SIDs.  To enable the implementation of these processes, this document also defines a file format used to persist and publish assigned SIDs.</t></abstract>

</front>

<seriesInfo name='Internet-Draft' value='draft-ietf-core-sid-00' />
<format type='TXT'
        target='http://www.ietf.org/internet-drafts/draft-ietf-core-sid-00.txt' />
</reference>



<reference  anchor='RFC7951' target='http://www.rfc-editor.org/info/rfc7951'>
<front>
<title>JSON Encoding of Data Modeled with YANG</title>
<author initials='L.' surname='Lhotka' fullname='L. Lhotka'><organization /></author>
<date year='2016' month='August' />
<abstract><t>This document defines encoding rules for representing configuration data, state data, parameters of Remote Procedure Call (RPC) operations or actions, and notifications defined using YANG as JavaScript Object Notation (JSON) text.</t></abstract>
</front>
<seriesInfo name='RFC' value='7951'/>
<seriesInfo name='DOI' value='10.17487/RFC7951'/>
</reference>



<reference anchor='I-D.vanderstok-core-comi'>
<front>
<title>CoAP Management Interface</title>

<author initials='P' surname='Stok' fullname='Peter Van der Stok'>
    <organization />
</author>

<author initials='A' surname='Bierman' fullname='Andy Bierman'>
    <organization />
</author>

<author initials='M' surname='Veillette' fullname='Michel Veillette'>
    <organization />
</author>

<author initials='A' surname='Pelov' fullname='Alexander Pelov'>
    <organization />
</author>

<date month='October' day='30' year='2016' />

<abstract><t>This document describes a network management interface for constrained devices and networks, called CoAP Management Interface (CoMI).  The Constrained Application Protocol (CoAP) is used to access data resources specified in YANG, or SMIv2 converted to YANG. CoMI uses the YANG to CBOR mapping and converts YANG identifier strings to numeric identifiers for payload size reduction.  CoMI extends the set of YANG based protocols NETCONF and RESTCONF with the capability to manage constrained devices and networks.</t></abstract>

</front>

<seriesInfo name='Internet-Draft' value='draft-vanderstok-core-comi-10' />
<format type='TXT'
        target='http://www.ietf.org/internet-drafts/draft-vanderstok-core-comi-10.txt' />
<format type='PDF'
        target='http://www.ietf.org/internet-drafts/draft-vanderstok-core-comi-10.pdf' />
</reference>



<reference  anchor='RFC7159' target='http://www.rfc-editor.org/info/rfc7159'>
<front>
<title>The JavaScript Object Notation (JSON) Data Interchange Format</title>
<author initials='T.' surname='Bray' fullname='T. Bray' role='editor'><organization /></author>
<date year='2014' month='March' />
<abstract><t>JavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data interchange format.  It was derived from the ECMAScript Programming Language Standard.  JSON defines a small set of formatting rules for the portable representation of structured data.</t><t>This document removes inconsistencies with other specifications of JSON, repairs specification errors, and offers experience-based interoperability guidance.</t></abstract>
</front>
<seriesInfo name='RFC' value='7159'/>
<seriesInfo name='DOI' value='10.17487/RFC7159'/>
</reference>



<reference  anchor='RFC7223' target='http://www.rfc-editor.org/info/rfc7223'>
<front>
<title>A YANG Data Model for Interface Management</title>
<author initials='M.' surname='Bjorklund' fullname='M. Bjorklund'><organization /></author>
<date year='2014' month='May' />
<abstract><t>This document defines a YANG data model for the management of network interfaces.  It is expected that interface-type-specific data models augment the generic interfaces data model defined in this document. The data model includes configuration data and state data (status information and counters for the collection of statistics).</t></abstract>
</front>
<seriesInfo name='RFC' value='7223'/>
<seriesInfo name='DOI' value='10.17487/RFC7223'/>
</reference>



<reference  anchor='RFC7228' target='http://www.rfc-editor.org/info/rfc7228'>
<front>
<title>Terminology for Constrained-Node Networks</title>
<author initials='C.' surname='Bormann' fullname='C. Bormann'><organization /></author>
<author initials='M.' surname='Ersue' fullname='M. Ersue'><organization /></author>
<author initials='A.' surname='Keranen' fullname='A. Keranen'><organization /></author>
<date year='2014' month='May' />
<abstract><t>The Internet Protocol Suite is increasingly used on small devices with severe constraints on power, memory, and processing resources, creating constrained-node networks.  This document provides a number of basic terms that have been useful in the standardization work for constrained-node networks.</t></abstract>
</front>
<seriesInfo name='RFC' value='7228'/>
<seriesInfo name='DOI' value='10.17487/RFC7228'/>
</reference>



<reference  anchor='RFC7277' target='http://www.rfc-editor.org/info/rfc7277'>
<front>
<title>A YANG Data Model for IP Management</title>
<author initials='M.' surname='Bjorklund' fullname='M. Bjorklund'><organization /></author>
<date year='2014' month='June' />
<abstract><t>This document defines a YANG data model for management of IP implementations.  The data model includes configuration data and state data.</t></abstract>
</front>
<seriesInfo name='RFC' value='7277'/>
<seriesInfo name='DOI' value='10.17487/RFC7277'/>
</reference>



<reference  anchor='RFC7317' target='http://www.rfc-editor.org/info/rfc7317'>
<front>
<title>A YANG Data Model for System Management</title>
<author initials='A.' surname='Bierman' fullname='A. Bierman'><organization /></author>
<author initials='M.' surname='Bjorklund' fullname='M. Bjorklund'><organization /></author>
<date year='2014' month='August' />
<abstract><t>This document defines a YANG data model for the configuration and identification of some common system properties within a device containing a Network Configuration Protocol (NETCONF) server.  This document also includes data node definitions for system identification, time-of-day management, user management, DNS resolver configuration, and some protocol operations for system management.</t></abstract>
</front>
<seriesInfo name='RFC' value='7317'/>
<seriesInfo name='DOI' value='10.17487/RFC7317'/>
</reference>




    </references>



  </back>
</rfc>

