Re: [core] content-formats for cbor YANG

peter van der Stok <stokcons@xs4all.nl> Fri, 21 April 2017 07:18 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 BAAEF129482 for <core@ietfa.amsl.com>; Fri, 21 Apr 2017 00:18:57 -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 4uNxzdDgVCZo for <core@ietfa.amsl.com>; Fri, 21 Apr 2017 00:18:56 -0700 (PDT)
Received: from lb1-smtp-cloud6.xs4all.net (lb1-smtp-cloud6.xs4all.net [194.109.24.24]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1469212946A for <core@ietf.org>; Fri, 21 Apr 2017 00:18:55 -0700 (PDT)
Received: from webmail.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:213]) by smtp-cloud6.xs4all.net with ESMTP id AvJt1v00F4R9iYA01vJuGu; Fri, 21 Apr 2017 09:18:54 +0200
Received: from 2001:983:a264:1:207c:e978:69c3:9319 by webmail.xs4all.nl with HTTP (HTTP/1.1 POST); Fri, 21 Apr 2017 09:18:53 +0200
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Date: Fri, 21 Apr 2017 09:18:53 +0200
From: peter van der Stok <stokcons@xs4all.nl>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michel Veillette <Michel.Veillette@trilliantinc.com>, peter van der Stok <consultancy@vanderstok.org>, Core <core@ietf.org>
Organization: vanderstok consultancy
Reply-To: consultancy@vanderstok.org
Mail-Reply-To: consultancy@vanderstok.org
In-Reply-To: <091EF847-AD5E-40D8-B04C-CDBDA47023F1@tzi.org>
References: <c2b6fb6e92c6a5680e544963e88d5fa7@xs4all.nl> <09BD739F-89A1-4DA7-9006-E30AEAEE581E@tzi.org> <BN6PR06MB230807D8EF9B69A473254077FE1B0@BN6PR06MB2308.namprd06.prod.outlook.com> <063c4a22d221667a92b180e5dce7ea1f@xs4all.nl> <BN6PR06MB2308B088FCC1DE8AD1370C4FFE1B0@BN6PR06MB2308.namprd06.prod.outlook.com> <102478F5-703D-46C0-9A0B-A21454F940DB@tzi.org> <BN6PR06MB23088F3C7FB189B774466177FE1B0@BN6PR06MB2308.namprd06.prod.outlook.com> <091EF847-AD5E-40D8-B04C-CDBDA47023F1@tzi.org>
Message-ID: <8ff54501447ab9e681ecfbee04652fb3@xs4all.nl>
X-Sender: stokcons@xs4all.nl
User-Agent: XS4ALL Webmail
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/Uuxh3BkRKPYEZUE2HnQeYvybV9U>
Subject: Re: [core] content-formats for cbor YANG
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
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: Fri, 21 Apr 2017 07:18:58 -0000

>> If we move in that direction (structural interoperability), do we need 
>> to define a different Content-Format for each one used by CoMI?
>> - value
>> - CBOR array (instance-identifier)
>> - CBOR array (value)
>> - CBOR array (instance-identifier, value)
> 
> Oh, right, I wasn’t aware that we use all of them.
> 
> So this would be (all in application/___+cbor):
> 
> yang-value
> yang-ids
> yang-values
> yang-set (or just yang)
> 
> This could be four media types, or one media type with four different
> values for a parameter.  Since, in both cases, we will have four
> different content-formats in the end, I’d go with four media types so
> we can minimize confusion.

Because the CoMI text now says that the payload of an array of one item 
can be optimized to just one item,
I like to suppress the yang-value+cbor and only retain the 
yang-values+cbor

Cheerio, Peter

> 
> Grüße, Carsten