Re: [core] content-formats for cbor YANG

Andy Bierman <andy@yumaworks.com> Thu, 20 April 2017 16:30 UTC

Return-Path: <andy@yumaworks.com>
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 687F6129ADC for <core@ietfa.amsl.com>; Thu, 20 Apr 2017 09:30:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 ooSHx4YWBSsA for <core@ietfa.amsl.com>; Thu, 20 Apr 2017 09:30:48 -0700 (PDT)
Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CF15A129AF4 for <core@ietf.org>; Thu, 20 Apr 2017 09:30:42 -0700 (PDT)
Received: by mail-wm0-x22a.google.com with SMTP id w64so108411089wma.0 for <core@ietf.org>; Thu, 20 Apr 2017 09:30:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=amfh4S92sQvBnqBJDDK6CmMddKHX2Op7Kloj1hoRweQ=; b=oTHcnSv5nExQbuJeFFrAnLST6ykXvn8eNLIvufIFCs45LSyExYrpcYvCQTh62KANir 57PNuJgudkPwtTeUwl2czywx7MHeci29OJKvTiIONj6RqFF+82WnOwmrEK1xlMFOtBNB nvL4Lo+SdBAkqJ29zQPDg61e+BVJHGKwNmKEQEf9S5t0UlkfbWD7d94ouw7A2iw1Ghkh tzuynQD7CDrZVr1syQapcnmpysXYKfi+qiL5q5DSyodeT/x6ROXSSx2gwLNRjFNe1QEV LhD4S+nwqdhOiZ4tWhxg8+5XR14oUDdVNNcEKhw4R5QnKFoNUFj1wyq257vEdWMwL8qK Xs9A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=amfh4S92sQvBnqBJDDK6CmMddKHX2Op7Kloj1hoRweQ=; b=W1G21kwMv8lwPJPCsofm2afO27GOdXN79Ci0SYczZQcYBps4EacQYVYzrj/tvRW7Oi WM2q6CA4BjVnPfn2uLRNWE8sO2YZIZqT7UCetYIxaAo13WKJI0oDBOy1LqaJivxHnWAz umu0BDL+fVAFZUIwm9uSVm5grs4U5TiVGG+Wec5fcXGgpqBUB0RrYxOGiNTEOYSpsxye GQ9Nmr0kAEsRBnZ+NaNwF2R/4ZYGuCJ795KrkpYcIQC9DsIDx1PAaIIgNd8ZMCkNsIYC ufh6heFQBb8/ypTFgGl2Zi1ErvVYK7Gi0I3n+CKj7DHYmLeR5yu6hBLYwtdLH/0eKgVK iXSA==
X-Gm-Message-State: AN3rC/6DuOpkG8fqo5xqnXo+hpWV54InM9u77VBzbtXZhqCHWfeZ/Pf1 zymo9t+dIvH5iBCJvfg/9sTrWaEHtw==
X-Received: by 10.28.143.135 with SMTP id r129mr3888577wmd.54.1492705841352; Thu, 20 Apr 2017 09:30:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.139.23 with HTTP; Thu, 20 Apr 2017 09:30:40 -0700 (PDT)
In-Reply-To: <c2b6fb6e92c6a5680e544963e88d5fa7@xs4all.nl>
References: <c2b6fb6e92c6a5680e544963e88d5fa7@xs4all.nl>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 20 Apr 2017 09:30:40 -0700
Message-ID: <CABCOCHRzMU5YWs87USO2QvxE0G0cF8r1CNF+apkzRFVcVS5-oA@mail.gmail.com>
To: "consultancy@vanderstok.org" <consultancy@vanderstok.org>
Cc: Core <core@ietf.org>
Content-Type: multipart/alternative; boundary="001a1145b59e6da89f054d9ba9ab"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/u0hTAr43-o-xOaYgIo3U1Jt8MFU>
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 16:30:50 -0000

Hi,


On Thu, Apr 20, 2017 at 1:46 AM, peter van der Stok <stokcons@xs4all.nl>
wrote:

> Hi Core,
>
> Following the discussion on CoMI content-formats during ietf98, I want to
> propose the following;
>
> Draft-ietf-core-yang-cbor deines the content-format application/yang+cbor
> which defines CBOR documents which contain the results of the mapping of a
> YANG document to CBOR as specified in the draft.
>
> Draft-ietf-core-comi defines two additional content-formats:
> 1) application/yang-fetch+cbor that specifies the contents and semantics
> of a FETCH CoMI request payload
> 2) application/yang-patch+cbor that specifies the contents and semantics
> of a PATCH CoMI request payload
>
>
I think the name application/yang-patch+cbor is very confusing, because
application/yang-patch+xml and
application/yang-patch+json are already defined in RFC 8072, and they work
completely differently
than the media types in CoMI.

I suggest application/coap-patch+cbor.

The reason this media-type is needed in RESTCONF is to distinguish a "plain
patch"
from a "structured patch". The payload for an RFC 5789 PATCH method is a
representation
of the target resource. A structured patch cannot use the same media-types
because the payload
is a predefined data structure. The resource content for the patch is
embedded inside.

Seems like the new media-types are needed instead of overloading
application/cbor.


Looking forward to alternative proposals or noises of approval.
>
> Greetings,
>
> Peter


Andy


>
>
> --
> Peter van der Stok
> vanderstok consultancy
> mailto: consultancy@vanderstok.org
> www: www.vanderstok.org
> tel NL: +31(0)492474673     F: +33(0)966015248
>
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core
>