Re: [netmod] YANG 1.0 module uses a grouping from a 1.1 module and the grouping contains 1.1 XPath functions?

Jernej Tuljak <jernej.tuljak@mg-soft.si> Mon, 21 October 2019 12:32 UTC

Return-Path: <jernej.tuljak@mg-soft.si>
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 C3B5D120099 for <netmod@ietfa.amsl.com>; Mon, 21 Oct 2019 05:32:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.101
X-Spam-Level:
X-Spam-Status: No, score=-0.101 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mg-soft.si
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 VmQe_lPD2VTl for <netmod@ietfa.amsl.com>; Mon, 21 Oct 2019 05:32:32 -0700 (PDT)
Received: from galileo.mg-soft.si (gate.mg-soft.si [212.30.73.66]) by ietfa.amsl.com (Postfix) with ESMTP id 55F5F12004D for <netmod@ietf.org>; Mon, 21 Oct 2019 05:32:32 -0700 (PDT)
Received: from [10.0.0.222] (tp-x61t.mg-soft.si [10.0.0.222]) by galileo.mg-soft.si (Postfix) with ESMTP id 88594C417623 for <netmod@ietf.org>; Mon, 21 Oct 2019 14:32:30 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.10.3 galileo.mg-soft.si 88594C417623
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mg-soft.si; s=default; t=1571661150; bh=IuMaDEdbEiW+Rq5cmIXwX9OrwPUKR/JXxH+HbUsY0eI=; h=Subject:From:To:References:Date:In-Reply-To:From; b=GFfmBN5dYKbtM2uCs6hF7cSf0N7P4ytyVULVZZ+XoSJaTyk6il1ltcrg/r0i/pF+5 OOg53uu0mRAvOYOnd0UN0JKlpxMSnTC+doqdnlzYrDBqbbhSAwl/ELhMLy7ygnX/QB yMGK+31b1BNJ/iBNZEe5k9naTVI3eVWOLyg5ZzJ++HucWYIt7To72La/9xoqFsD1e9 9r64QfA/JiT46VZcWx/WTymXy23EhMYNtic4DkFm8RifjjzkzaOiTq9aoqt0n8zi0j 3uClALdNKZFNuoa0lGWZpQ324HYbRDoyywmTIAxYbvlhVJibDTSRE5ZBXJitLeJNC/ uwfVI2Wvq8YGw==
From: Jernej Tuljak <jernej.tuljak@mg-soft.si>
To: NETMOD Working Group <netmod@ietf.org>
References: <d988e178-4755-61ef-dfcc-87ba432da363@mg-soft.si>
Message-ID: <7335cf50-00a1-b967-811c-325eab916135@mg-soft.si>
Date: Mon, 21 Oct 2019 14:32:30 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0
MIME-Version: 1.0
In-Reply-To: <d988e178-4755-61ef-dfcc-87ba432da363@mg-soft.si>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/F4XEoYuhdu2Ko42ImgA5w4LwyJQ>
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:32:35 -0000

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?
>
> Jernej
>
> [1] - https://tools.ietf.org/html/rfc8533
> [2] -https://tools.ietf.org/html/rfc8532
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod