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

Ladislav Lhotka <lhotka@nic.cz> Tue, 05 December 2017 15:53 UTC

Return-Path: <lhotka@nic.cz>
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 542B9129564 for <netmod@ietfa.amsl.com>; Tue, 5 Dec 2017 07:53:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.999
X-Spam-Level:
X-Spam-Status: No, score=-6.999 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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 pDN3l-tlxSa8 for <netmod@ietfa.amsl.com>; Tue, 5 Dec 2017 07:52:59 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 638A5129562 for <netmod@ietf.org>; Tue, 5 Dec 2017 07:52:58 -0800 (PST)
Received: from birdie (cst-prg-19-60.cust.vodafone.cz [46.135.19.60]) by mail.nic.cz (Postfix) with ESMTPSA id 0B09B63F16; Tue, 5 Dec 2017 16:52:56 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1512489176; bh=/LLoPKlsfk1Ikm/7e2WgLmnBwQ2CGQN8pEh7uT1HoeY=; h=From:To:Date; b=Pyp/jWFvmD1QsgIZEE9sd2gljf5ijVfdZI8oiKhJpsKqRVetwqeQlZfauO5X2Xe0A INVVIAZ1lDmXkgR2lqtCHtIhOzpjcCFn8coQx2iQTojcbkxuGl8EVFfRJPu28DPF4B IkSQPlH/DRMjNJvMS95b2BVN77wPG7gVTWNE25q4=
Message-ID: <1512489175.18679.7.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: Martin Bjorklund <mbj@tail-f.com>, balazs.lengyel@ericsson.com
Cc: rwilton@cisco.com, andy@yumaworks.com, netmod@ietf.org
Date: Tue, 05 Dec 2017 16:52:55 +0100
In-Reply-To: <20171205.153824.189055168841663121.mbj@tail-f.com>
References: <CABCOCHRg7H=DbS1oxOhdq=dkQgAcL_r1ECSFgcU=DkE-vXwcOg@mail.gmail.com> <409e9bb5-fcbe-d94f-a7cb-cb7961d9fdb2@cisco.com> <aa579364-ac89-36f4-8947-4a5eb1c6ba48@ericsson.com> <20171205.153824.189055168841663121.mbj@tail-f.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.26.2
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/u2PAMWOgE3WnRob6RN1UmCnlv2c>
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 15:53:03 -0000

On Tue, 2017-12-05 at 15:38 +0100, Martin Bjorklund wrote:
> Balazs Lengyel <balazs.lengyel@ericsson.com> wrote:
> > On 2017-12-05 11:04, Robert Wilton wrote:
> > 
> > 
> > 
> > 
> > 
> >         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.
> > 
> > 
> > 
> > BALAZS: I always thought that if a when statement's argument was true
> > but becomes false, all instance data that is set/written according to
> > the schema nodes affected by the when statement shall be removed by
> > the server. So IMHO the server can and should do something about a
> > violated when statement.
> 
> Yes.

Even in <operational>?

> 
> > Actually I would like a list of statements and constraints that MUST
> > be satisfied in the different data stores. Speaking about syntactic
> > versus semantic seems fluffy.
> 
> See RFC 7950, section 8 (esp. 8.1 and 8.2).

Yes, and I think it is fully appropriate to denote constraints that have to be
satisfied in all data trees as "syntactic" (or "schema constraints") and those
that are needed for validity as "semantic". That said, I think it would be
useful to reconsider the allocations of constraints into these two categories.

Lada

> 
> 
> /martin
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67