Re: [core] map (5), ordering vs YANG SID in ietf-core-yang-cbor

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Thu, 17 August 2017 07:29 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 190A51327EC; Thu, 17 Aug 2017 00:29:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 S9GgEMCPwgii; Thu, 17 Aug 2017 00:29:06 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 24552132436; Thu, 17 Aug 2017 00:29:06 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id E9914EF9; Thu, 17 Aug 2017 09:29:04 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id UjP5eNr_HqSw; Thu, 17 Aug 2017 09:29:04 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Thu, 17 Aug 2017 09:29:04 +0200 (CEST)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id C8D2F200C5; Thu, 17 Aug 2017 09:29:04 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id 4jCkAb8urc2C; Thu, 17 Aug 2017 09:29:04 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 6CA36200C3; Thu, 17 Aug 2017 09:29:04 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id C82D0404125E; Thu, 17 Aug 2017 09:29:03 +0200 (CEST)
Date: Thu, 17 Aug 2017 09:29:03 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Carsten Bormann <cabo@tzi.org>
Cc: core WG <core@ietf.org>, cbor@ietf.org
Message-ID: <20170817072903.sce5vxgckv3q3njt@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Carsten Bormann <cabo@tzi.org>, core WG <core@ietf.org>, cbor@ietf.org
References: <13753.1502939016@obiwan.sandelman.ca> <7689DC42-6C05-462F-8466-C067B34232A9@tzi.org> <20170817065430.wp3gqiui37f26ki6@elstar.local> <BCE12092-9C93-4432-835A-EB87CB84977B@tzi.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: 8bit
In-Reply-To: <BCE12092-9C93-4432-835A-EB87CB84977B@tzi.org>
User-Agent: NeoMutt/20170714 (1.8.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/yeFhVQd3PRd50DtvmaYLtygZAI0>
Subject: Re: [core] map (5), ordering vs YANG SID in ietf-core-yang-cbor
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, 17 Aug 2017 07:29:08 -0000

Carsten,

I looked into core-sid to understand how sids work, I did not expect
that the definition how delta sids work is in core-cbor...

/js

On Thu, Aug 17, 2017 at 09:04:07AM +0200, Carsten Bormann wrote:
> On Aug 17, 2017, at 08:54, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> > 
> > Carsten,
> > 
> > if I search for 'delta' or 'reference SID', I do not find text that
> > says what the reference SID is. Where do I have to look at to
> > understand that delta SIDs are parent-referenced?
> 
> 4.2.1 (of yang-cbor) says:
> 
>    o  The delta value is equal to the SID of the current schema node
>       minus the SID of the parent schema node.  When no parent exists in
> 
> But maybe there is indeed potential for editorial improvement here.
> Clearly phrasing this always in terms of the reference SID, and then saying where that reference SID comes from (e.g., zero at the root of the tree), might help.
> This probably also should be buttressed some more by examples.
> 
> > /js
> > 
> > PS: Why do we have this, I mean, why is there a $ for some of these?
> > 
> >           pattern 'Module|Submodule|feature|' +
> > 	           'identity$|node$|notification$|rpc$|action$';
> > 
> >    Why is this not an enum in the first place? And why are the
> >    first two capitalized?
> 
> (Now you are in core-sid, I think.)
> Good questions; I’d defer to the YANG specialists here.
> 
> > PS: Why do you not import yang-identifier from ietf-yang-types?
> 
> Ditto.
> 
> Grüße, Carsten
> 

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>