Re: [netmod] YANG 'when' with absolute path

Carsten Bormann <cabo@tzi.org> Thu, 30 December 2021 16:49 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9FC343A134E for <netmod@ietfa.amsl.com>; Thu, 30 Dec 2021 08:49:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_MSPIKE_H2=-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 wxCLPo20EF08 for <netmod@ietfa.amsl.com>; Thu, 30 Dec 2021 08:49:15 -0800 (PST)
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 357163A134D for <netmod@ietf.org>; Thu, 30 Dec 2021 08:49:13 -0800 (PST)
Received: from [192.168.217.118] (p5089a436.dip0.t-ipconnect.de [80.137.164.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4JPvPL7359zDCcX; Thu, 30 Dec 2021 17:49:10 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <AM7PR07MB624845F918B56CE975696043A0459@AM7PR07MB6248.eurprd07.prod.outlook.com>
Date: Thu, 30 Dec 2021 17:49:10 +0100
X-Mao-Original-Outgoing-Id: 662575750.4439369-413dbd1e7216e2eabe08a93bb1b44408
Content-Transfer-Encoding: quoted-printable
Message-Id: <2F6E4A1B-618E-4CAA-AFAE-9C41609B1B7A@tzi.org>
References: <AM7PR07MB624845F918B56CE975696043A0459@AM7PR07MB6248.eurprd07.prod.outlook.com>
To: "netmod@ietf.org" <netmod@ietf.org>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Nw2zwbFrfrjNrONm1SJFifR7kyU>
Subject: Re: [netmod] YANG 'when' with absolute path
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Dec 2021 16:49:20 -0000

On 2021-12-30, at 13:29, tom petch <ietfc@btconnect.com> wrote:
> 
>       when "../../../../../../nw:network-types/tet:te-topology/“

I’m probably showing my ignorance about YANG again, but what is the reason this is not phrased as

      when "./ancestor::nw:network-types/tet:te-topology/“

?

Grüße, Carsten