Re: [netmod] VRFY :Y09: introduce optional keys

Ladislav Lhotka <lhotka@nic.cz> Thu, 08 January 2015 10:22 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 108D41ACD00 for <netmod@ietfa.amsl.com>; Thu, 8 Jan 2015 02:22:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.361
X-Spam-Level:
X-Spam-Status: No, score=-0.361 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HELO_EQ_CZ=0.445, HOST_EQ_CZ=0.904, MIME_8BIT_HEADER=0.3, T_RP_MATCHES_RCVD=-0.01] autolearn=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 JOH6ulLNwE8C for <netmod@ietfa.amsl.com>; Thu, 8 Jan 2015 02:22:47 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6371C1A89A3 for <netmod@ietf.org>; Thu, 8 Jan 2015 02:22:47 -0800 (PST)
Received: from [195.113.220.110] (unknown [195.113.220.110]) by mail.nic.cz (Postfix) with ESMTPSA id 651C81411DA; Thu, 8 Jan 2015 11:22:45 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nic.cz; s=default; t=1420712565; bh=fyGEL5P9bIM3jbJ8kzzyMWm7H2OkfCtGA/KLsIWrWyY=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=Oj4wp1dTylC1UypcGLVRUrFl+P/ZIyhGZ8U4ZcWzTojkJDmaGcDfOwaUJTqpm3u/F R5FFuutPQgYLNFKhYGh0kOdhxfOtJHmfm9BFfljoja3eBCIOQTc5TPfuto8Ft4+8C7 j6xj8Bw5UJMQf/cjkqliFYTVeLU8yDc4jscCSPlY=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <20150108.102157.2289650364805875177.mbj@tail-f.com>
Date: Thu, 08 Jan 2015 11:22:45 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <0CD84218-D27C-4DB2-8E4A-8D9D651BE308@nic.cz>
References: <20150107143216.GA13482@elstar.local> <20150108.102157.2289650364805875177.mbj@tail-f.com>
To: Martin Björklund <mbj@tail-f.com>
X-Mailer: Apple Mail (2.1993)
X-Virus-Scanned: clamav-milter 0.98.1 at mail
X-Virus-Status: Clean
Archived-At: http://mailarchive.ietf.org/arch/msg/netmod/yEn-iFbFZeKDeV-Th8oClFbAjpo
Cc: netmod@ietf.org
Subject: Re: [netmod] VRFY :Y09: introduce optional keys
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Thu, 08 Jan 2015 10:22:51 -0000

> On 08 Jan 2015, at 10:21, Martin Bjorklund <mbj@tail-f.com> wrote:
> 
> Hi,
> 
> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
>> The 2014-12-03 virtual interim meeting proposal is to adopt Y09-03.
> 
> The reasons for proposing Y09-03 (instead of Y09-02) were:
> 
>  1. The instance-identifier syntax proposed in Y09-02 doesn't work,
>     b/c empty strings and 0-values integers would also return "true"
>     in the expression "not(key)".
> 
>  But this turned out to be a false claim; the syntax proposed in
>  Y09-02 is correct.
> 
>  2. Y09-02 is tricky to implement in "common databases", since they
>     require values for all keys.

In some common databases (e.g. mongodb) a declaration of a key is just an instruction for the server to generate an index. I think it is more a limitation of NETCONF’s edit-config design.

An implication for both Y09-02 and Y09-03 is that if a key is not set at the time a list entry is created, it cannot be set afterwards. 

> 
>  But the idea for how to handle Y09-03 in these databases was to
>  store additional info that the default value is set.  The same
>  technique can be used to handle purely optional keys.
> 
> Thus, I prefer Y09-02.

Me too, Lada

> 
> 
> /martin
> 
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C