Re: [netmod] datastore-specific constraints
Jan Lindblad <janl@tail-f.com> Wed, 12 December 2018 15:36 UTC
Return-Path: <janl@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 69BB812777C for <netmod@ietfa.amsl.com>; Wed, 12 Dec 2018 07:36:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 iVxd34ss0nv5 for <netmod@ietfa.amsl.com>; Wed, 12 Dec 2018 07:36:13 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 6B5CD130DDF for <netmod@ietf.org>; Wed, 12 Dec 2018 07:36:12 -0800 (PST)
Received: from [10.147.40.248] (unknown [173.38.220.48]) by mail.tail-f.com (Postfix) with ESMTPSA id 131311AE0351; Wed, 12 Dec 2018 16:36:11 +0100 (CET)
From: Jan Lindblad <janl@tail-f.com>
Message-Id: <364AFCA9-7486-4CF3-8B5F-0D712C8276CE@tail-f.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7086E4A2-5FB4-4233-B4DA-4628D81172B5"
Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\))
Date: Wed, 12 Dec 2018 16:36:09 +0100
In-Reply-To: <E80F6591-EBBE-417B-A2E6-F03319DB4E45@cisco.com>
Cc: Ladislav Lhotka <lhotka@nic.cz>, "netmod@ietf.org" <netmod@ietf.org>
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
References: <87zhtan7bo.fsf@nic.cz> <BE57F393-5E00-4877-BA04-7B980DDB3CDF@tail-f.com> <E80F6591-EBBE-417B-A2E6-F03319DB4E45@cisco.com>
X-Mailer: Apple Mail (2.3445.102.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/usnElhvrSk6aqXOKL4EshGN2yhk>
Subject: Re: [netmod] datastore-specific constraints
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: Wed, 12 Dec 2018 15:36:17 -0000
Reshad, > Should it be ignored or rejected? Ignored, IMO. A rejection policy would bring little value, but lead to complications for clients and servers alike. > Also not keen in foo-operational, since it’s in contradiction to NMDA’s goals. +1 /jan > From: netmod <netmod-bounces@ietf.org> on behalf of Jan Lindblad <janl@tail-f.com> > Date: Wednesday, December 12, 2018 at 9:53 AM > To: Ladislav Lhotka <lhotka@nic.cz> > Cc: "netmod@ietf.org" <netmod@ietf.org> > Subject: Re: [netmod] datastore-specific constraints > > Lada, > > Maybe you could just skip the when and explain the behavior in the description? E.g. > > leaf foo { > ... > description "Foo controls bla, bla. > Any configured value will be ignored when auto-foo is true."; > } > > Best Regards, > /jan > > >> On 12 Dec 2018, at 15:33, Ladislav Lhotka <lhotka@nic.cz <mailto:lhotka@nic.cz>> wrote: >> >> Hi, >> >> in some cases, constraints expressed with "when" or "must" may only be >> intended for configuration datastores. A typical example is an >> auto-negotiable parameter: >> >> leaf auto-foo { >> type boolean; >> default true; >> description "If true, parameter 'foo' will be auto-negotiated."; >> } >> leaf foo { >> when "../auto-foo = 'false'"; >> ... >> } >> >> This means that if auto-foo is true, it is impossible to configure the >> foo parameter. However, even with auto-foo = true, it is desirable to >> see the auto-negotiated value in <operational>, so, ideally, the "when" >> constraint should not apply in <operational>. >> >> How can this logic be modelled under NMDA? Is an extra leaf >> "foo-operational" needed? >> >> Thanks, Lada >> >> -- >> 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 >>
- [netmod] datastore-specific constraints Ladislav Lhotka
- Re: [netmod] datastore-specific constraints Jan Lindblad
- Re: [netmod] datastore-specific constraints Robert Wilton
- Re: [netmod] datastore-specific constraints Reshad Rahman (rrahman)
- Re: [netmod] datastore-specific constraints Jan Lindblad
- Re: [netmod] datastore-specific constraints Ladislav Lhotka
- Re: [netmod] datastore-specific constraints Juergen Schoenwaelder
- Re: [netmod] datastore-specific constraints Martin Bjorklund
- Re: [netmod] datastore-specific constraints Ladislav Lhotka
- Re: [netmod] datastore-specific constraints Martin Bjorklund
- Re: [netmod] datastore-specific constraints Ladislav Lhotka
- Re: [netmod] datastore-specific constraints Robert Wilton
- Re: [netmod] datastore-specific constraints Ladislav Lhotka
- Re: [netmod] datastore-specific constraints Randy Presuhn