[Netconf] [netconf] draft-ietf-netconf-nmda-netconf Filtering order

Rohit R Ranade <rohitrranade@huawei.com> Thu, 31 May 2018 08:53 UTC

Return-Path: <rohitrranade@huawei.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost []) by ietfa.amsl.com (Postfix) with ESMTP id C94A412E89A for <netconf@ietfa.amsl.com>; Thu, 31 May 2018 01:53:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([]) by localhost (ietfa.amsl.com []) (amavisd-new, port 10024) with ESMTP id sYe9k5X9VNg5 for <netconf@ietfa.amsl.com>; Thu, 31 May 2018 01:53:52 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com []) (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 A7F9312DA03 for <netconf@ietf.org>; Thu, 31 May 2018 01:53:51 -0700 (PDT)
Received: from lhreml706-cah.china.huawei.com (unknown []) by Forcepoint Email with ESMTP id 674C1D82B579E for <netconf@ietf.org>; Thu, 31 May 2018 09:53:45 +0100 (IST)
Received: from DGGEML401-HUB.china.huawei.com ( by lhreml706-cah.china.huawei.com ( with Microsoft SMTP Server (TLS) id 14.3.382.0; Thu, 31 May 2018 09:53:46 +0100
Received: from DGGEML510-MBX.china.huawei.com ([]) by DGGEML401-HUB.china.huawei.com ([fe80::89ed:853e:30a9:2a79%31]) with mapi id 14.03.0382.000; Thu, 31 May 2018 16:53:38 +0800
From: Rohit R Ranade <rohitrranade@huawei.com>
To: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] draft-ietf-netconf-nmda-netconf Filtering order
Thread-Index: AdP4u/KvJlF6NuNETSKkkZAxWhDnzQ==
Date: Thu, 31 May 2018 08:53:39 +0000
Message-ID: <991B70D8B4112A4699D5C00DDBBF878A6BBB3AA8@dggeml510-mbx.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
x-originating-ip: []
Content-Type: multipart/alternative; boundary="_000_991B70D8B4112A4699D5C00DDBBF878A6BBB3AA8dggeml510mbxchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/dD0PWbf8FdxWWli9UKBEnFRYeDk>
Subject: [Netconf] [netconf] draft-ietf-netconf-nmda-netconf Filtering order
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 31 May 2018 08:53:54 -0000

Hi All,

Consider a case where user purposefully gave conflicting filters. For eg :

l  Give data-store as <operational>

l  origin-filter=default

l  with-defaults=trim

I know this is not a valid use-case for User, but since there are filters which are of type "select X/ select all except X", I wanted to get the ordering correct.

Now in such case, consider two order of applying filters,

1)       Consider that we apply origin-filter=default first, then all the leaf having default values along with their keys will be selected. Then when with-defaults=trim is applied, all the leaf are trimmed and only the Keys will remain in selection output.

2)       Consider that we apply with-defaults=trim first, then all records without their default values for leaf will remain. Next when apply origin-filter=default, since there are no default-valued leaf, all the records will be filtered out. So nothing selected.

Now in the draft, it is mentioned that filter criteria are logically AND'ed.
First criteria : Select default origin leaf
Second criteria : Donot select default leaf

According to my understanding, If we AND these criteria, we end up getting "DONOT select default leaf". So we should apply order 2) .. Order 1) is not a valid order in this case then. Your thoughts ?

With Regards,
Rohit R Ranade