Re: [core] YANG to CBOR mapping

peter van der Stok <stokcons@xs4all.nl> Mon, 14 March 2016 08:41 UTC

Return-Path: <stokcons@xs4all.nl>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F1DA612D510 for <core@ietfa.amsl.com>; Mon, 14 Mar 2016 01:41:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.621
X-Spam-Level:
X-Spam-Status: No, score=-2.621 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LMC7LP0iyTDs for <core@ietfa.amsl.com>; Mon, 14 Mar 2016 01:41:34 -0700 (PDT)
Received: from lb3-smtp-cloud6.xs4all.net (lb3-smtp-cloud6.xs4all.net [194.109.24.31]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0E45212D568 for <core@ietf.org>; Mon, 14 Mar 2016 01:41:33 -0700 (PDT)
Received: from webmail.xs4all.nl ([194.109.20.207]) by smtp-cloud6.xs4all.net with ESMTP id VkhW1s00k4U4Moq01khWSJ; Mon, 14 Mar 2016 09:41:31 +0100
Received: from 2001:983:a264:1:fda7:a70a:f49:c4e3 by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Mon, 14 Mar 2016 09:41:30 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"; format="flowed"
Content-Transfer-Encoding: 7bit
Date: Mon, 14 Mar 2016 09:41:30 +0100
From: peter van der Stok <stokcons@xs4all.nl>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
Organization: vanderstok consultancy
Mail-Reply-To: consultancy@vanderstok.org
In-Reply-To: <BLUPR06MB1763AC14774F3C21EC21CE79FEB40@BLUPR06MB1763.namprd06.prod.outlook.com>
References: <125ea14670116bd8cbc275a2b1b011f9@xs4all.nl> <BLUPR06MB1763AC14774F3C21EC21CE79FEB40@BLUPR06MB1763.namprd06.prod.outlook.com>
Message-ID: <d1bd7cebdd16c434dc007c73319a920b@xs4all.nl>
X-Sender: stokcons@xs4all.nl (ITflUy2ZrLHhQHrvKDpSXckKtLHJDnfY)
User-Agent: XS4ALL Webmail
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/9ebPgqSy58JW9iGPbzYAID767gA>
Cc: Core <core@ietf.org>
Subject: Re: [core] YANG to CBOR mapping
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: consultancy@vanderstok.org
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Mar 2016 08:41:37 -0000

Hi Michel

I'm confused about the answers below.

> === About list instance
> 
> On the identification side of list instance, I thinks this is fully
> documented in section
> (https://core-wg.github.io/yang-cbor/draft-veillette-core-yang-cbor-mapping-latest.html#rfc.section.5.13)
> and the third example in this section address specifically this topic.

This section is about the "instance-identifier" not about the instance.

> 
> On the encoding side, we mention list instances in section
> (https://core-wg.github.io/yang-cbor/draft-veillette-core-yang-cbor-mapping-latest.html#rfc.section.4.2)
> "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)."

This section is about lists without keys.

My suggestion is to create a section that describes the encoding of list 
instances (multiple instances) identified with key values.
I prefer to have that subject handled here, so it is not exclusively 
comi speak, but for example can be used also for restconf.

Greetings,

Peter