Re: [core] [netmod] js review of draft-ietf-core-yang-cbor-12

Carsten Bormann <> Wed, 08 April 2020 11:55 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 9C2353A0769; Wed, 8 Apr 2020 04:55:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 6liFV9wzN73Z; Wed, 8 Apr 2020 04:55:51 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 6E30D3A076E; Wed, 8 Apr 2020 04:55:50 -0700 (PDT)
Received: from [] ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPSA id 48y2m42g7nz10Gw; Wed, 8 Apr 2020 13:55:48 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.\))
From: Carsten Bormann <>
In-Reply-To: <>
Date: Wed, 08 Apr 2020 13:55:47 +0200
Cc: core <>, NetMod WG <>, Ivaylo Petrov <>
X-Mao-Original-Outgoing-Id: 608039747.7926379-e359bd8fff38faa4d778885139f6e312
Content-Transfer-Encoding: quoted-printable
Message-Id: <>
References: <> <> <> <> <> <> <> <>
To: Juergen Schoenwaelder <>
X-Mailer: Apple Mail (2.3608.
Archived-At: <>
Subject: Re: [core] [netmod] js review of draft-ietf-core-yang-cbor-12
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 08 Apr 2020 11:55:54 -0000

>> Ha.
>> Let’s create a registry in yang-cbor for id= values (initially filled with id=name).
>> -sid can then register id=sid in that.
> He? yang-cbor defines how to use sids as ids so I see no reason to not
> also register the id=sid in yang-cbor. I thought we settled on
> yang-cbor defines what sids are and the sid id details how they are
> assigned and how the number space is managed. This way, yang-cbor is
> the base document and the sid document has a normative reference to
> yang-cbor and comi has a normative reference to yang-cbor. Is there
> a reason that speaks against this?


The media type could simply say “uses the concept of SIDs” or it could say “uses SIDs as allocated in -sid”.
I’m not sure the media type needs to say anything at all about this, but if it does, for completeness I think it would need to do the latter (so we can have other media types that get their SIDs elsewhere).
That would mean a normative reference from yang-cbor to -sid.
The registry trick turns that around.

Grüße, Carsten