Re: [core] Comments on draft-ietf-core-yang-cbor-00

Ladislav Lhotka <lhotka@nic.cz> Wed, 25 May 2016 11:18 UTC

Return-Path: <lhotka@nic.cz>
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 7D33512DAB0 for <core@ietfa.amsl.com>; Wed, 25 May 2016 04:18:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.426
X-Spam-Level:
X-Spam-Status: No, score=-8.426 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-1.426] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 0T7wSKnjxkvK for <core@ietfa.amsl.com>; Wed, 25 May 2016 04:18:47 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F269D12DAAF for <core@ietf.org>; Wed, 25 May 2016 04:18:46 -0700 (PDT)
Received: from birdie.labs.nic.cz (unknown [195.113.220.110]) by mail.nic.cz (Postfix) with ESMTPSA id 6EB5F60808; Wed, 25 May 2016 13:18:44 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1464175124; bh=UnC6N1OFg2J2MYiDlqpxb4VQVBkp9uJZnApl6z5/MD4=; h=From:Date:To; b=kpUrP3Y6dRolxjEMBHzNNYpMHXzb7RqeJL5G23vxfjTYCPTTqbqWTjMWvMlCnbQ9E MekdIOF3nYtPQa5HQrxtfwzt+2Mb5ofaoNS925HOfDfeyPQHZCvkqbnf8+fI01wees iPoGz6hnN1jD1qxRz32ogPqfU1WIM6LCetZmzW9Q=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <57456182.80809@tzi.org>
Date: Wed, 25 May 2016 13:18:45 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <DE1E8FB2-5E68-4EA6-A166-D886311F83FB@nic.cz>
References: <CABCOCHRRACvVXx2S_hZm2TxbvP48aO4Q4REkh0LFjmHkMkZ1Vg@mail.gmail.com> <m2y473svm0.fsf@nic.cz> <57401CC2.2040002@tzi.org> <20160521112857.GA4437@elstar.local> <m2zirh81d8.fsf@birdie.labs.nic.cz> <20160524123613.GB9897@elstar.local> <AF6317CD-C9A7-4D7A-A80C-B2DBE0A210A9@nic.cz> <20160524142924.GB10130@elstar.local> <C6C84E10-70FB-4C47-8272-8018F99C2D0E@nic.cz> <etPan.5744797a.3c93c048.169de@tzi.org> <E6D17E60-935D-4580-8593-86CFF08F4D91@nic.cz> <57456182.80809@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.3124)
X-Virus-Scanned: clamav-milter 0.98.7 at mail
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/Nivoy6JzdqnwdDFt7z9s8ZjVgeA>
Cc: Core <core@ietf.org>
Subject: Re: [core] Comments on draft-ietf-core-yang-cbor-00
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
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: Wed, 25 May 2016 11:18:48 -0000

> On 25 May 2016, at 10:25, Carsten Bormann <cabo@tzi.org> wrote:
> 
> Ladislav Lhotka wrote:
>> Alternatively, the annotation could specify the member type by name, e.g.
> 
> That's great (and we could use SIDs to reduce the bulk) if the type has
> a name.  Many of the examples I cited yesterday define the enumerations
> in place in the union, without giving them a name.  Apart from
> goedelizing these (which *could* be done by the SID process as well),
> I'm out of ideas.

Then we'd have to stick to the numbers. Any reordering of member types would affect the current procedure for union validation, too.

Lada

> 
> Grüße, Carsten

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C