Re: [netmod] evaluation of "when" under NMDA

Robert Wilton <rwilton@cisco.com> Tue, 05 December 2017 10:05 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 381461286D6 for <netmod@ietfa.amsl.com>; Tue, 5 Dec 2017 02:05:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.499
X-Spam-Level:
X-Spam-Status: No, score=-14.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=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 6DiLiCoYf2nW for <netmod@ietfa.amsl.com>; Tue, 5 Dec 2017 02:04:58 -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 3A5271286B1 for <netmod@ietf.org>; Tue, 5 Dec 2017 02:04:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=9835; q=dns/txt; s=iport; t=1512468298; x=1513677898; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to; bh=V23JDAl9HPPy/8n7JbPSB3xKIvl2G504BWU5alPiXws=; b=CoJYsxLTpa53NWMDvdodbIg8j+n9/PPkYMcupAB5uIPa6edVGH/osoEM T30PbMJc2yfVzJ70YF6ieHqebNjwkilUcP8jeglRUFNul2/M5pQfA/Wj1 cb0UMoGnFpZXS9Xy/XZDyfLd6ohtkgrYcBXdEjvBbZE4TKz628mzhSR0L Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DHAQD/biZa/xbLJq1cGQEBAQEBAQEBAQEBAQcBAQEBAYQjbieEAIsUj1QvfpA4h2AKGAEKhElPAoV/FAEBAQEBAQEBAWsohSIBAQEBAgEBASFLCwULCxgnAwICJx8RBgEMBgIBAYoXCBCpRoInJoo8AQEBAQEBAQEBAQEBAQEBAQEBAQEBGAWDSINggWkpgkw2hQuDK4JjBZk8iTqVE4wLh0yOVId8gTo2IoFNMhoIGxU6gimCGYI8QTeKIgEBAQ
X-IronPort-AV: E=Sophos;i="5.45,363,1508803200"; d="scan'208,217";a="648598"
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; 05 Dec 2017 10:04:56 +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 vB5A4tlX018552; Tue, 5 Dec 2017 10:04:55 GMT
To: Andy Bierman <andy@yumaworks.com>, Ladislav Lhotka <lhotka@nic.cz>
Cc: 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> <CABCOCHRg7H=DbS1oxOhdq=dkQgAcL_r1ECSFgcU=DkE-vXwcOg@mail.gmail.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <409e9bb5-fcbe-d94f-a7cb-cb7961d9fdb2@cisco.com>
Date: Tue, 05 Dec 2017 10:04:55 +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: <CABCOCHRg7H=DbS1oxOhdq=dkQgAcL_r1ECSFgcU=DkE-vXwcOg@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------E95BC6E73067132C2D39A1B6"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/R7l1ftlg6N3ct4UwQj8JtiOanU4>
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: Tue, 05 Dec 2017 10:05:01 -0000


On 04/12/2017 17:47, Andy Bierman wrote:
>
>
> On Mon, Dec 4, 2017 at 9:05 AM, Ladislav Lhotka <lhotka@nic.cz 
> <mailto:lhotka@nic.cz>> wrote:
>
>     On Mon, 2017-12-04 at 17:34 +0100, Martin Bjorklund wrote:
>     > Ladislav Lhotka <lhotka@nic.cz <mailto: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 see your point now.
> The server has to evaluate the when-stmts in operational.

I think that this is probably down to implementation, but I don't think 
that this is necessarily required.  A server is meant to conform to 
'when' statements in <operational> (e.g. if the system is in a normal 
steady state), but they are allowed to be violated, and I'm not 
expecting that a server would evaluate them (except perhaps to discover 
implementation bugs).  Further, if violations of when statements in 
<operational> are detected then I don't think that there is anything 
that the server can reasonable do.


> Even though the schema trees are the same, the client has a complex 
> task comparing
> <intended> to <operational>.

I don't get why this isn't just a simple diff between the <intended> and 
<operational> data trees.  What is causing the complexity?

Thanks,
Rob


> However it is no different than the existing
> complexity comparing <candidate> to <running>.
>
>     Lada
>
>
> Andy
>
>     >
>     > > 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
>     --
>     Ladislav Lhotka
>     Head, CZ.NIC Labs
>     PGP Key ID: 0xB8F92B08A9F76C67
>
>     _______________________________________________
>     netmod mailing list
>     netmod@ietf.org <mailto:netmod@ietf.org>
>     https://www.ietf.org/mailman/listinfo/netmod
>     <https://www.ietf.org/mailman/listinfo/netmod>
>
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod