Re: [core] removing names from yang-cbor rules

"Murray S. Kucherawy" <superuser@gmail.com> Mon, 20 September 2021 06:10 UTC

Return-Path: <superuser@gmail.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 C016F3A100F for <core@ietfa.amsl.com>; Sun, 19 Sep 2021 23:10:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.156
X-Spam-Level:
X-Spam-Status: No, score=-1.156 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_TRY_3LD=0.941] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 SsDISI_yq0Yq for <core@ietfa.amsl.com>; Sun, 19 Sep 2021 23:10:14 -0700 (PDT)
Received: from mail-vs1-xe2b.google.com (mail-vs1-xe2b.google.com [IPv6:2607:f8b0:4864:20::e2b]) (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 3BB033A100D for <core@ietf.org>; Sun, 19 Sep 2021 23:10:14 -0700 (PDT)
Received: by mail-vs1-xe2b.google.com with SMTP id k10so15446551vsp.12 for <core@ietf.org>; Sun, 19 Sep 2021 23:10:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IWvpU2L9LjmVQQPI8zyOFe4Of6eRJFqlS4EaVvHU3jY=; b=k30jE3R/LKhr5wsgOnXaN8Uti3b4FeP5xhfZdh1C4x3x7kJoJaWKIY10Lz1RITn47N pneS98GCKI7yRnneb6AH9sfATvcf8J/2Cd8Rm6pLI1PzXxXcJJups9gCLmDn7B6NiGez 6z2YCsmH5hVBJOUyxS+pTTX/qVtt226ncpTeMNixZQNaztKRg1ZLfGgIMSVQWPOSwEhv QYbFShAl1qZWt4ZoSUOKYUAaEn1xEwL/6UQ83QZfjp9z/4inQ8kccaVWpGReCfiORQo/ 8RcP73XD5BBLN/1Ndz6TKAyMh3tK3f7kDzL/gR/0BvHQd3i9Md5Ta1XS05e6B/oEU2u1 m8Aw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IWvpU2L9LjmVQQPI8zyOFe4Of6eRJFqlS4EaVvHU3jY=; b=eafeIy6Qc3OUY2jlpCbpbAt9d3psYT653fW/tO8lc+n6MHPvXPw3qQkQbkkyd9NuBv pcYR1qCfULbbcYDk9UfVUFrs6a69ADe5P0p9eF+hBSfozql4QJdP4Dcfe38hyzgXywKH +cCgX5y/gsRZ/wCZNj3yDi78irafXtDW1V9vJ3nDSRsljEvVpg1IxqnbUbkqh2NY0Au8 Y+UlCfBjFHEmUmkHErccJHetmZ4oxMQeXxs/2hn76ag3Zh07HlrUobNW+xs0dhDi/FTP Q2OTOamOIpnOEOPsoA7UzCiX56dVQLi8VPkUwEMXx3ccpQSQFCYCqjsnsM8PlFfP8jBi s3TQ==
X-Gm-Message-State: AOAM531VpMz4EnPmn/HPhnqzWBNNKMKpJmJLVsMDmphRqimlzVjP1vei JGc8VFmM85/uROxAKZ8KzySZw/19PeiV1eX4lr+bKCxKsBg=
X-Google-Smtp-Source: ABdhPJxY2ZbP+/NjOizPKzejwa6xMroiIsLyaNTyFcoaeVxCYNc0LMUQrIraMo1lHSs0zSA4s4qSIhOts7TBrmRrYh4=
X-Received: by 2002:a67:b005:: with SMTP id z5mr14548293vse.13.1632118212877; Sun, 19 Sep 2021 23:10:12 -0700 (PDT)
MIME-Version: 1.0
References: <106211.1632084796@dooku>
In-Reply-To: <106211.1632084796@dooku>
From: "Murray S. Kucherawy" <superuser@gmail.com>
Date: Sun, 19 Sep 2021 23:10:01 -0700
Message-ID: <CAL0qLwa2_7-3ic2PqEDv_UvcSchB8Enhigg=eS09XvGc9cdXeg@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: core@ietf.org
Content-Type: multipart/alternative; boundary="0000000000004f635705cc672234"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/fW1HXThzxuk5xxHA_SzNZZYB3YU>
Subject: Re: [core] removing names from yang-cbor rules
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 20 Sep 2021 06:10:19 -0000

I'm happy to take credit for a keen observation such as this, but this was
actually Eric Vyncke.

-MSK

On Sun, Sep 19, 2021 at 1:53 PM Michael Richardson <mcr+ietf@sandelman.ca>
wrote:

>
> Hi, in Murray's review, he asks about why we have two ways to encode keys
> for
> YANG-CBOR.  This review comment is captured at:
>
> https://github.com/core-wg/yang-cbor/issues/54
>
>    A generic comment about the operational issue of supporting TWO ways to
>    encode a data node: either normal string or the SID. This means that
>    either there is a 2-way negotiation mechanism or that all CORE nodes
> must
>    support both encoding and have agreed on a common SID mappings. Section
> 7
>    only briefly touches this issue with "Content-Type" but not with
>    "Accept".
>
>    -- Section 4.2.1 & 4.4.1 --
>    BTW, I like the idea of encoding a container with sequential SID and
> the delta CBOR encoding ;-)
>
> I also wonder about this.
> I think that the SID concept is advanced enough that we can just rely upon
> it.  Murray's comment is that if we support two things, then an encoder
> needs
> to pick one, and it's likely wrong.  Since this is often data at rest,
> there
> is no possible negotiation either.
>
> I propose to remove section 4.1.2:
>
>
>   4.1.2.  Using names in keys
>      CBOR diagnostic notation:
>      {
>        "ietf-system:hostname" : "myhost.example.com"
>      }
>
>      CBOR encoding:
>      A1                                         # map(1)
>        74                                      # text(20)
>           696574662D73797374656D3A686F73746E616D65
>        72                                      # text(18)
>           6D79686F73742E6578616D706C652E636F6D
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>  -= IPv6 IoT consulting =-
>
>
>
>