Re: [netmod] YANG 1.0 module uses a grouping from a 1.1 module and the grouping contains 1.1 XPath functions?
Martin Bjorklund <mbj@tail-f.com> Mon, 21 October 2019 12:45 UTC
Return-Path: <mbj@tail-f.com>
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 7271B1200C4 for <netmod@ietfa.amsl.com>; Mon, 21 Oct 2019 05:45:52 -0700 (PDT)
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, SPF_HELO_NONE=0.001, SPF_PASS=-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 6EBNAu-vxOya for <netmod@ietfa.amsl.com>; Mon, 21 Oct 2019 05:45:51 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id F04A412004D for <netmod@ietf.org>; Mon, 21 Oct 2019 05:45:50 -0700 (PDT)
Received: from localhost (unknown [173.38.220.41]) by mail.tail-f.com (Postfix) with ESMTPSA id E98B61AE018A; Mon, 21 Oct 2019 14:45:48 +0200 (CEST)
Date: Mon, 21 Oct 2019 14:45:20 +0200
Message-Id: <20191021.144520.1263805994773817986.mbj@tail-f.com>
To: jernej.tuljak@mg-soft.si
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <7335cf50-00a1-b967-811c-325eab916135@mg-soft.si>
References: <d988e178-4755-61ef-dfcc-87ba432da363@mg-soft.si> <7335cf50-00a1-b967-811c-325eab916135@mg-soft.si>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3R2kAnSUROivA0LoK849lEDso6U>
Subject: Re: [netmod] YANG 1.0 module uses a grouping from a 1.1 module and the grouping contains 1.1 XPath functions?
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: Mon, 21 Oct 2019 12:45:53 -0000
Jernej Tuljak <jernej.tuljak@mg-soft.si> wrote: > Should I clarify my question? > > Jernej > > On 10/10/2019 10:36, Jernej Tuljak wrote: > > Hi, > > > > there is at least one YANG 1.0 standard module that imports and uses > > groupings from a YANG 1.1 standard module and at least one such > > grouping contains must/when statements referencing XPath functions > > that are not available in 1.0 XPath context. > > > > The modules I'm referring to are part of RFC8533 [1] and RFC8532 > > [2]. ietf-connectionless-oam-methods (a 1.0 module) uses > > cl-oam:tp-address from ietf-connectionless-oam (a 1.1 module), which > > calls "derived-from-or-self" in a when expression of a used > > node. These RFCs were published in April. > > > > Our tools complain about "derived-from-or-self" not being defined in > > ietf-connectionless-oam-methods's XPath context: > > > > [Error]; > > ietf-connectionless-oam-methods@2019-04-16:/cloam-methods:continuity-check/cloam-methods:input/cloam-methods:destination-tp/cloam-methods:mac-address/cloam-methods:when; > > XPath function "derived-from-or-self" is not defined in the XPath > > context > > > > Is this correct? Or are XPath functions expected to be resolved > > statically, like types? I don't think it is correct to reject this construct. The definition is done in a 1.1 module and can only be implemented in a server that supports 1.1. It seems a bit odd that "ietf-connectionless-oam-methods" is defined in YANG 1.0 though, but that's a different issue... /martin
- [netmod] YANG 1.0 module uses a grouping from a 1… Jernej Tuljak
- Re: [netmod] YANG 1.0 module uses a grouping from… Jernej Tuljak
- Re: [netmod] YANG 1.0 module uses a grouping from… Martin Bjorklund
- Re: [netmod] YANG 1.0 module uses a grouping from… Andy Bierman
- Re: [netmod] YANG 1.0 module uses a grouping from… Robert Varga
- Re: [netmod] YANG 1.0 module uses a grouping from… Jernej Tuljak