CBOR Encoding of Data Modeled with YANG
draft-ietf-core-yang-cbor-05

Document Type Active Internet-Draft (core WG)
Last updated 2017-08-07
Replaces draft-veillette-core-yang-cbor-mapping
Stream IETF
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Stream WG state WG Document (wg milestone: Dec 2017 - CBOR Encoding of Dat... )
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
Internet Engineering Task Force                        M. Veillette, Ed.
Internet-Draft                                   Trilliant Networks Inc.
Intended status: Standards Track                           A. Pelov, Ed.
Expires: February 9, 2018                                         Acklio
                                                             A. Somaraju
                                                   Tridonic GmbH & Co KG
                                                               R. Turner
                                                              Landis+Gyr
                                                             A. Minaburo
                                                                  Acklio
                                                         August 08, 2017

                CBOR Encoding of Data Modeled with YANG
                      draft-ietf-core-yang-cbor-05

Abstract

   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) [RFC7049].

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on February 9, 2018.

Copyright Notice

   Copyright (c) 2017 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of

Veillette, et al.       Expires February 9, 2018                [Page 1]
Internet-Draft   CBOR Encoding of Data Modeled with YANG     August 2017

   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Terminology and Notation  . . . . . . . . . . . . . . . . . .   3
     2.1.  YANG Schema Item iDentifier (SID) . . . . . . . . . . . .   4
     2.2.  CBOR diagnostic notation  . . . . . . . . . . . . . . . .   5
   3.  Properties of the CBOR Encoding . . . . . . . . . . . . . . .   6
   4.  Encoding of YANG Data Node Instances  . . . . . . . . . . . .   7
     4.1.  The 'leaf' Data Node  . . . . . . . . . . . . . . . . . .   7
     4.2.  The 'container' Data Node . . . . . . . . . . . . . . . .   7
       4.2.1.  SIDs as keys  . . . . . . . . . . . . . . . . . . . .   8
       4.2.2.  Member names as keys  . . . . . . . . . . . . . . . .  10
     4.3.  The 'leaf-list' Data Node . . . . . . . . . . . . . . . .  10
     4.4.  The 'list' Data Node  . . . . . . . . . . . . . . . . . .  11
       4.4.1.  SIDs as keys  . . . . . . . . . . . . . . . . . . . .  11
       4.4.2.  Member names as keys  . . . . . . . . . . . . . . . .  14
     4.5.  The 'anydata' Data Node . . . . . . . . . . . . . . . . .  15
     4.6.  The 'anyxml' Data Node  . . . . . . . . . . . . . . . . .  17
   5.  Representing YANG Data Types in CBOR  . . . . . . . . . . . .  17
     5.1.  The unsigned integer Types  . . . . . . . . . . . . . . .  17
     5.2.  The integer Types . . . . . . . . . . . . . . . . . . . .  18
     5.3.  The 'decimal64' Type  . . . . . . . . . . . . . . . . . .  18
     5.4.  The 'string' Type . . . . . . . . . . . . . . . . . . . .  18
     5.5.  The 'boolean' Type  . . . . . . . . . . . . . . . . . . .  19
     5.6.  The 'enumeration' Type  . . . . . . . . . . . . . . . . .  19
     5.7.  The 'bits' Type . . . . . . . . . . . . . . . . . . . . .  20
     5.8.  The 'binary' Type . . . . . . . . . . . . . . . . . . . .  21
     5.9.  The 'leafref' Type  . . . . . . . . . . . . . . . . . . .  21
     5.10. The 'identityref' Type  . . . . . . . . . . . . . . . . .  22
Show full document text