Re: [yang-doctors] [netmod] grouping prefix Re: [Teas] Yangdoctors early review of draft-ietf-teas-yang-path-computation-11

Martin Björklund <mbj+ietf@4668.se> Wed, 23 December 2020 13:59 UTC

Return-Path: <mbj+ietf@4668.se>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AD0903A0FDC; Wed, 23 Dec 2020 05:59:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.099
X-Spam-Level:
X-Spam-Status: No, score=-0.099 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, PDS_NAKED_TO_NUMERO=1.999, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=4668.se header.b=pEttMaXl; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=lmcuNaUl
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 1IrcbavgrLyn; Wed, 23 Dec 2020 05:59:28 -0800 (PST)
Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D33023A0FD8; Wed, 23 Dec 2020 05:59:25 -0800 (PST)
Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0C4E05C009C; Wed, 23 Dec 2020 08:59:25 -0500 (EST)
Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 23 Dec 2020 08:59:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm3; bh= spioz18Cjxb92se0Wx3erQAxQ31BDDXKlhkBShW4kgs=; b=pEttMaXlo2b63+gs wYYQeXEZdEyZsvaABYMAcG5fAIOeXEYyfEw1a7Ujf9tMHyEX7SLB7rVqlicckg0o fd7UR65bGDmqFhZ7SxQ/1V9TITNCQ146jBL3tQU8B3prIIRTqhTj7WRwh+4+vibz ChvzmBzgsxUIcc8Ay5IZogQK4Mii9H4eM/uRW5G2DEQcuOGTJDfXmsaVTUhjNdpp VVl65pO8uOnav3AeLcN7QasfRbalD/6q0a9Cx2tuHu7xpmtgefvVWTRNTlz3zI5o hIXjAjic4YlX3umj1AKfNDga9BeOjPWHwxpMjetF7JiukWF9/LBqdGbDi8dlgQgL C1niCw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=spioz18Cjxb92se0Wx3erQAxQ31BDDXKlhkBShW4k gs=; b=lmcuNaUlg0V0t/MQPcSGu/lq0qBTWeZB3oShlLeYocTSgchlUE2+xwf++ YN2ZJKeL3YDp4X11cn0MgXkz39MyB/x6OjWi3Od+iy14+y/NrhRw8mB/mo2npCuo 87jCpNnMomFhMUvaq58vawlduekfsMjBBAmOwd2mMpG5Ptl0X8nrlKpr8X/onaC2 I4l8I5DLqw9xchCV8AXfPlMpfPcOkmoSQilMEoN2zeUtU5tC2kD+fca0rkxtag6V oL/OLlVewGJMlm4RfoaZCnYRWb+g8afrh037IfoPeeVq4K6v2SK/+VkdnPTQRR9G /OWebfOMGiuGbbuf27h+LFuxAYy4Q==
X-ME-Sender: <xms:PE3jX8i9GMzPK2AqshgJ99ZqYQ8WvXIDwcC-dtibpKlrl53I4wCBhA> <xme:PE3jX3DpjAFP3_KMX66k6LYUDC5Gs6efwudsem-3vnhLu_-KvwXc-VLpo8y5kdO5Z fSuMXS2LgMAGn6s4gU>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtjedgheekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffkffvuffhjghfofggtgfgsehtqh ertdertddunecuhfhrohhmpeforghrthhinhcuuehjnphrkhhluhhnugcuoehmsghjodhi vghtfhesgeeiieekrdhsvgeqnecuggftrfgrthhtvghrnhepieekhedthfejudevkefgvd ekudduhedvvdffvefggfdtveduieejgfdtveefledunecuffhomhgrihhnpehivghtfhdr ohhrghenucfkphepudehkedrudejgedrgedrvdduheenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmsghjodhivghtfhesgeeiieekrdhsvg
X-ME-Proxy: <xmx:PE3jX9eFb_5oFcQPUzt3B2a0i120GpM06twMrsQzrkJOFYilzFzo_A> <xmx:PE3jX_cbFP3yQB_y-ar7myQjtcNoDqkqZPtuloP2ZmDeSIIHDfIrJQ> <xmx:PE3jXxi_Do5jF2y9klRgYmy5iaqa6fPDgBRKh19728Fhc3ilH_OOnw> <xmx:PU3jX4rnONOb36EnoouWW6yI3qDnHRhDyQRHzwk_gKumbFYHkX_alQ>
Received: from localhost (unknown [158.174.4.215]) by mail.messagingengine.com (Postfix) with ESMTPA id EA08D240064; Wed, 23 Dec 2020 08:59:23 -0500 (EST)
Date: Wed, 23 Dec 2020 14:59:21 +0100
Message-Id: <20201223.145921.437198295219717483.id@4668.se>
To: ietfc@btconnect.com
Cc: netmod@ietf.org, yang-doctors@ietf.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <AM7PR07MB6248589F990C977364396E79A0DE0@AM7PR07MB6248.eurprd07.prod.outlook.com>
References: <AM6PR07MB5784208BE5EDE515021B8FA7A2DE0@AM6PR07MB5784.eurprd07.prod.outlook.com> <AM7PR07MB6248D4AA3256DC3BABAD0E42A0DE0@AM7PR07MB6248.eurprd07.prod.outlook.com> <AM7PR07MB6248589F990C977364396E79A0DE0@AM7PR07MB6248.eurprd07.prod.outlook.com>
X-Mailer: Mew version 6.8 on Emacs 26.3
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/BzXS2PdLiHdiRYBzv5hd24LXkK0>
Subject: Re: [yang-doctors] [netmod] grouping prefix Re: [Teas] Yangdoctors early review of draft-ietf-teas-yang-path-computation-11
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 23 Dec 2020 13:59:31 -0000

Hi,


tom petch <ietfc@btconnect.com> wrote:
> Sorry about the incomplete e-mail.  Try again
> 
> From: Teas <teas-bounces@ietf.org> on behalf of Martin Björklund via
> Datatracker <noreply@ietf.org>
> Sent: 17 December 2020 18:58
> 
> Reviewer: Martin Björklund
> Review result: Ready with Nits
> 
> <snip>
> o  Validation
> 
>    The module fails YANG validation, but that is really due to errors
>    in ietf-te@2020-07-12.yang.  Specifially, the leafref in the
>    grouping "path-compute-info" must have prefixes in its path.
>    Without prefixes, the path refers to nodes in the module that uses
>    the grouping.  (same for other groupings in that module).
> 
> <tp>
> Martin,
> 
> I am confused (which is why I will never be a YANG doctor:-(.
> 
> RFC7950 p.104 says
>       Identifiers appearing inside
>    the grouping are resolved relative to the scope in which the grouping
>    is defined, not where it is used.
> I recall much debate about paths and their resolution but I cannot
> find a statement that paths are resolved where they are used in
> RFC7950, nor in the many Errata.

p. 104 further says:

   Prefix mappings, type names,
   grouping names, and extension usage are evaluated in the hierarchy
   where the "grouping" statement appears.


But in this case we have a leafref path w/o prefixes.

Section 6.4.1 says:

   o  Names without a namespace prefix belong to the same namespace as
      the identifier of the current node.  Inside a grouping, that
      namespace is affected by where the grouping is used (see
      Section 7.13).

And 7.13 says:

   The effect of a "uses" reference to a grouping is that the nodes
   defined by the grouping are copied into the current schema tree and
   are then updated according to the "refine" and "augment" statements.

   The identifiers defined in the grouping are not bound to a namespace
   until the contents of the grouping are added to the schema tree via a
   "uses" statement that does not appear inside a "grouping" statement,
   at which point they are bound to the namespace of the current module.





/martin



> And while I find teas-te almost impossible to understand because of
> how it is structured, yet
> the elements in
> type leafref {
>         path "/te/globals/named-path-constraints/"
>            + "named-path-constraint/name";
>       }
> 
> would all appear to be in teas-te and not imported from
> e.g. te-typesin, in which case prefix are not needed.
> 
> So while I am sure you are right, and this is a significant problem,
> yet I cannot see the chapter and verse to back it up.
> 
> In passing, this construct, in teas-yang-path-computation has a
> history of YANG difficulties.
> 
> Tom petch
> 
> 
> 
> 
> 
> 
> 
> 
> /martin
> 
> 
> 
> _______________________________________________
> Teas mailing list
> Teas@ietf.org
> https://www.ietf.org/mailman/listinfo/teas
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod