Re: [netmod] evaluation of "when" under NMDA
Robert Wilton <rwilton@cisco.com> Mon, 04 December 2017 17:29 UTC
Return-Path: <rwilton@cisco.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 BD7A3126CF9 for <netmod@ietfa.amsl.com>; Mon, 4 Dec 2017 09:29:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
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 FeIku44gKqwG for <netmod@ietfa.amsl.com>; Mon, 4 Dec 2017 09:29:39 -0800 (PST)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 968DD126CC7 for <netmod@ietf.org>; Mon, 4 Dec 2017 09:29:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1696; q=dns/txt; s=iport; t=1512408578; x=1513618178; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=qfdDCilWU4nDM+uI6tScFHaqXjJa6nTLDh2kqpvGDQA=; b=iN/IwK8MNBBP880y+fvwlsD4by3yyugVgw2TnKxxUS4maXu/5LdeaMaN Rmf6Iv/NBipHjW9xpqu+R+3bMi53Jg7pcgrMBDvCgFjYAvVd3qnP0X5fX igo3YMit7Wi6R0+s5pSIKFhhNyleSLz8VqpaCbbweQyZHgYnaOd5LEQWt s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ByAQDqhCVa/xbLJq1cGQEBAQEBAQEBAQEBAQcBAQEBAYUQJ4N/ixSQA36YGAqFOwKFdhUBAQEBAQEBAQFrKIUiAQEBAQIBIw8BBVELGAICJgICVwYBDAYCAQGKFginX4IniloBAQEBAQEBAwEBAQEBASKBD4YYgWkpC4JBNog2gmMFomyVEYwLh0uOUYd8gTo1I4FNMhoIGxWCY4RVQTeKFgEBAQ
X-IronPort-AV: E=Sophos;i="5.45,359,1508803200"; d="scan'208";a="628992"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2017 17:29:36 +0000
Received: from [10.63.23.85] (dhcp-ensft1-uk-vla370-10-63-23-85.cisco.com [10.63.23.85]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id vB4HTZPS004274; Mon, 4 Dec 2017 17:29:36 GMT
To: Ladislav Lhotka <lhotka@nic.cz>, NETMOD WG <netmod@ietf.org>
References: <1512404811.1422.63.camel@nic.cz> <20171204.173431.1294203680272812703.mbj@tail-f.com> <1512407158.6635.8.camel@nic.cz>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <bf1cb7ba-7a01-2962-3a36-f139dc06cbd3@cisco.com>
Date: Mon, 04 Dec 2017 17:29:35 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <1512407158.6635.8.camel@nic.cz>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/o56nC4V61iKDEU5tcQ9A0W948go>
Subject: Re: [netmod] evaluation of "when" under NMDA
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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, 04 Dec 2017 17:29:41 -0000
Hi Lada, On 04/12/2017 17:05, Ladislav Lhotka wrote: > On Mon, 2017-12-04 at 17:34 +0100, Martin Bjorklund wrote: >> Ladislav Lhotka <lhotka@nic.cz> wrote: >>> Hi, >>> >>> if we have >>> >>> augment "/target/node" { >>> when "..."; >>> ... >>> } >>> >>> is the "when" expression supposed to be evaluated separately in each >> datastore, >>> and the augment applied only in those datastores where the result is true? >> Yes. > But then it cannot be guaranteed that the schema for <operational> is a superset > of the schema of configuration datastores - the when expression can evaluate to > false in <operational> but true in <intended>. I think that comes down to terminology, RFC 7950 section 7.21.5 on when statements just talks about making data definition statements conditional. I don't really think that when statements (or choice statements) change the schema associated with a datastore, they just make parts of it inactive based on the current data. I.e. you wouldn't expect different information to be returned via YANG library depending on how particular when statements in the implemented modules get evaluated. Is seems to me that the when processing falls out quite naturally. Is there a scenario where you think that this could cause a problem? Thanks, Rob > > Lada > >>> RFC 7950 says in sec. 7.21.5 that the context node for XPath evaluation is >> "the >>> augment's target node in the data tree", but with NMDA we have multiple data >>> trees, hence multiple target nodes. >> We had multiple datastores even before NMDA. The when expression >> could be true in candidate but false in running. >> >> /martin
- [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Martin Bjorklund
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Juergen Schoenwaelder
- Re: [netmod] evaluation of "when" under NMDA Robert Wilton
- Re: [netmod] evaluation of "when" under NMDA Andy Bierman
- Re: [netmod] evaluation of "when" under NMDA Andy Bierman
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Juergen Schoenwaelder
- Re: [netmod] evaluation of "when" under NMDA Martin Bjorklund
- Re: [netmod] evaluation of "when" under NMDA Alex Campbell
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Robert Wilton
- Re: [netmod] evaluation of "when" under NMDA Juergen Schoenwaelder
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Balazs Lengyel
- Re: [netmod] evaluation of "when" under NMDA Martin Bjorklund
- Re: [netmod] evaluation of "when" under NMDA Robert Wilton
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka
- Re: [netmod] evaluation of "when" under NMDA Ladislav Lhotka