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

The information below is for an old version of the document
Document Type Active Internet-Draft (core WG)
Authors Michel Veillette  , Alexander Pelov  , Abhinav Somaraju  , Randy Turner  , Ana Minaburo  , Ivaylo Petrov 
Last updated 2019-03-25 (latest revision 2018-09-14)
Replaces draft-veillette-core-yang-cbor-mapping
Stream IETF
Intended RFC status (None)
Formats pdf htmlized (tools) htmlized bibtex
Stream WG state WG Document
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: September 26, 2019                                       Acklio
                                                             A. Somaraju
                                                   Tridonic GmbH & Co KG
                                                               R. Turner
                                                              Landis+Gyr
                                                             A. Minaburo
                                                          I. Petrov, Ed.
                                                                  Acklio
                                                          March 25, 2019

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

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 https://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 September 26, 2019.

Copyright Notice

   Copyright (c) 2019 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

Veillette, et al.      Expires September 26, 2019               [Page 1]
Internet-Draft   CBOR Encoding of Data Modeled with YANG      March 2019

   (https://trustee.ietf.org/license-info) in effect on the date of
   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) . . . . . . . . . . . .   5
     2.2.  CBOR diagnostic notation  . . . . . . . . . . . . . . . .   5
   3.  Properties of the CBOR Encoding . . . . . . . . . . . . . . .   6
   4.  Encoding of YANG Schema Node Instances  . . . . . . . . . . .   7
     4.1.  The 'leaf'  . . . . . . . . . . . . . . . . . . . . . . .   7
     4.2.  The 'container' and other collections . . . . . . . . . .   8
       4.2.1.  SIDs as keys  . . . . . . . . . . . . . . . . . . . .   8
       4.2.2.  Member names as keys  . . . . . . . . . . . . . . . .   9
     4.3.  The 'leaf-list' . . . . . . . . . . . . . . . . . . . . .  11
     4.4.  The 'list' and 'list' instance(s) . . . . . . . . . . . .  11
       4.4.1.  SIDs as keys  . . . . . . . . . . . . . . . . . . . .  12
       4.4.2.  Member names as keys  . . . . . . . . . . . . . . . .  14
     4.5.  The 'anydata' . . . . . . . . . . . . . . . . . . . . . .  15
     4.6.  The 'anyxml'  . . . . . . . . . . . . . . . . . . . . . .  17
   5.  Encoding of YANG data templates . . . . . . . . . . . . . . .  17
     5.1.  SIDs as keys  . . . . . . . . . . . . . . . . . . . . . .  18
     5.2.  Member names as keys  . . . . . . . . . . . . . . . . . .  19
   6.  Representing YANG Data Types in CBOR  . . . . . . . . . . . .  20
     6.1.  The unsigned integer Types  . . . . . . . . . . . . . . .  20
     6.2.  The integer Types . . . . . . . . . . . . . . . . . . . .  21
     6.3.  The 'decimal64' Type  . . . . . . . . . . . . . . . . . .  21
     6.4.  The 'string' Type . . . . . . . . . . . . . . . . . . . .  22
     6.5.  The 'boolean' Type  . . . . . . . . . . . . . . . . . . .  22
     6.6.  The 'enumeration' Type  . . . . . . . . . . . . . . . . .  22
     6.7.  The 'bits' Type . . . . . . . . . . . . . . . . . . . . .  23
     6.8.  The 'binary' Type . . . . . . . . . . . . . . . . . . . .  24
     6.9.  The 'leafref' Type  . . . . . . . . . . . . . . . . . . .  24
     6.10. The 'identityref' Type  . . . . . . . . . . . . . . . . .  25
Show full document text