Re: [core] removing names from yang-cbor rules
Carsten Bormann <cabo@tzi.org> Thu, 23 September 2021 15:25 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 C2C453A0E18 for <core@ietfa.amsl.com>; Thu, 23 Sep 2021 08:25:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 IKsoUAd_snPG for <core@ietfa.amsl.com>; Thu, 23 Sep 2021 08:25:17 -0700 (PDT)
Received: from gabriel-smtp.zfn.uni-bremen.de (gabriel-smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 720563A0E0E for <core@ietf.org>; Thu, 23 Sep 2021 08:25:17 -0700 (PDT)
Received: from smtpclient.apple (ip-109-40-0-186.web.vodafone.de [109.40.0.186]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4HFf9k4Twtz31NC; Thu, 23 Sep 2021 17:25:14 +0200 (CEST)
Content-Type: multipart/alternative; boundary="Apple-Mail-1BD12F70-09D6-451E-84F1-9A0D29853EA2"
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (1.0)
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CABCOCHRJRDopozQ+3NcHvK3u4oOoGMSZFAQFos_JtZmRM59Ldw@mail.gmail.com>
Date: Thu, 23 Sep 2021 17:25:13 +0200
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, "Murray S. Kucherawy" <superuser@gmail.com>, Core <core@ietf.org>
Message-Id: <9A230719-4BA3-4033-A80B-48862446C45E@tzi.org>
References: <CABCOCHRJRDopozQ+3NcHvK3u4oOoGMSZFAQFos_JtZmRM59Ldw@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>
X-Mailer: iPhone Mail (18H17)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/Ql4DloeJI2R6M6pSTSf-DRW7_sI>
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: Thu, 23 Sep 2021 15:25:23 -0000
Strings would not be used with constrained devices. The point of the string-based names is to ensure that there never is a reason to use text-based encodings (XML, JSON) with yang. It is a completely separate choice. (Supported by Accept: in http.) Sent from mobile, sorry for terse > On 23. Sep 2021, at 16:17, Andy Bierman <andy@yumaworks.com> wrote: > > > > >> On Wed, Sep 22, 2021 at 9:35 PM Carsten Bormann <cabo@tzi.org> wrote: >> Clearly, SIDs are the major innovation here and they are the normal way to use Yang-cbor. >> >> I don’t agree the string variant should be removed. This takes Yang-cbor out of the game for “big-web” applications. >> >> Instead, we should make sure to explain that strings are a special option that you chose wholesale when you need it, not something you switch to from SIDs randomly. >> > > The problem with this approach (no negotiation, either peer sends SID or string at any time) > is that it forces complexity on a constrained device that a giant NETCONF router is not > even expected to support. It also forces a constrained device to store the string names. > > > Andy > >> Sent from mobile, sorry for terse >> >>>> On 23. Sep 2021, at 01:02, Andy Bierman <andy@yumaworks.com> wrote: >>>> >>> >>> >>> >>>> On Wed, Sep 22, 2021 at 2:54 PM Michael Richardson <mcr+ietf@sandelman.ca> wrote: >>>> >>>> Murray S. Kucherawy <superuser@gmail.com> wrote: >>>> > I'm happy to take credit for a keen observation such as this, but this >>>> > was actually Eric Vyncke. >>>> >>>> sorry, if I screwed that attribution up when creating the issues. >>>> >>>> >> 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: >>>> >>>> There are also other parts of the document which refer to names as well. >>>> I have no use for names. >>>> >>> >>> I agree it is better to remove the string name variant and only support SIDs as names. >>> It will be important for the client to be able to obtain the SID File URL list >>> representing all SIDs used by the server. This is needed before the client can >>> use any data from the server (including the CORECONF YANG library). >>> >>> The client will have to be hard-wired with the SIDs or capable of consuming SID files in JSON format. >>> >>> >>>> >>>> -- >>>> Michael Richardson <mcr+IETF@sandelman.ca> . o O ( IPv6 IøT consulting ) >>>> Sandelman Software Works Inc, Ottawa and Worldwide >>>> >>>> >>> >>> >>> Andy >>> >>>> >>>> >>>> _______________________________________________ >>>> core mailing list >>>> core@ietf.org >>>> https://www.ietf.org/mailman/listinfo/core >>> _______________________________________________ >>> core mailing list >>> core@ietf.org >>> https://www.ietf.org/mailman/listinfo/core
- [core] removing names from yang-cbor rules Michael Richardson
- Re: [core] removing names from yang-cbor rules Murray S. Kucherawy
- Re: [core] removing names from yang-cbor rules Michael Richardson
- Re: [core] removing names from yang-cbor rules Andy Bierman
- Re: [core] removing names from yang-cbor rules Carsten Bormann
- Re: [core] removing names from yang-cbor rules Michael Richardson
- Re: [core] removing names from yang-cbor rules Andy Bierman
- Re: [core] removing names from yang-cbor rules Michael Richardson
- Re: [core] removing names from yang-cbor rules Carsten Bormann
- Re: [core] removing names from yang-cbor rules Andy Bierman
- Re: [core] removing names from yang-cbor rules Andy Bierman