Re: [core] content-formats for cbor YANG

Carsten Bormann <cabo@tzi.org> Thu, 20 April 2017 18:08 UTC

Return-Path: <cabo@tzi.org>
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 A8DFA129B51 for <core@ietfa.amsl.com>; Thu, 20 Apr 2017 11:08:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] 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 sq-YjIWeMMhQ for <core@ietfa.amsl.com>; Thu, 20 Apr 2017 11:08:24 -0700 (PDT)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C564F12957C for <core@ietf.org>; Thu, 20 Apr 2017 11:08:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::b]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id v3KI8Kbs018937; Thu, 20 Apr 2017 20:08:20 +0200 (CEST)
Received: from [192.168.217.113] (p5DC7F3A7.dip0.t-ipconnect.de [93.199.243.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3w86LD5bLGzDHW6; Thu, 20 Apr 2017 20:08:20 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <BN6PR06MB23088F3C7FB189B774466177FE1B0@BN6PR06MB2308.namprd06.prod.outlook.com>
Date: Thu, 20 Apr 2017 20:08:18 +0200
Cc: peter van der Stok <consultancy@vanderstok.org>, Core <core@ietf.org>
X-Mao-Original-Outgoing-Id: 514404498.662665-e26cfa3546a2badf5cf7d41100893047
Content-Transfer-Encoding: quoted-printable
Message-Id: <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>
To: Michel Veillette <Michel.Veillette@trilliantinc.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/kzQHHWjTHBAfPM3saqPbpBcO3yI>
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: Thu, 20 Apr 2017 18:08:26 -0000

On Apr 20, 2017, at 18:58, Michel Veillette <Michel.Veillette@trilliantinc.com> wrote:
> 
> Hi Carsten and thanks for your comments.
> 
> About (application/yang-set+cbor)
> Do you propose to use it only for iPATCH /c request ?

That was my intention.

> Or also for GET /c response, PUT /c request and POST /c request ?

We could stick with application/yang+cbor for that, but that would meant that they all use the same structure.  I see that your table doesn’t.
(Or we could go for structural interoperability only.)

> 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.

Grüße, Carsten