Re: [Netconf] [netmod] NETCONF NMDA <get-data> on conventional datastore

Martin Bjorklund <mbj@tail-f.com> Tue, 05 June 2018 09:40 UTC

Return-Path: <mbj@tail-f.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B96F4130F46; Tue, 5 Jun 2018 02:40:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 jG9n16-16B8h; Tue, 5 Jun 2018 02:40:23 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 0E316130F2B; Tue, 5 Jun 2018 02:40:23 -0700 (PDT)
Received: from localhost (h-80-27.A165.priv.bahnhof.se [212.85.80.27]) by mail.tail-f.com (Postfix) with ESMTPSA id 837631AE034E; Tue, 5 Jun 2018 11:40:21 +0200 (CEST)
Date: Tue, 05 Jun 2018 11:40:21 +0200
Message-Id: <20180605.114021.2101856417045449053.mbj@tail-f.com>
To: rohitrranade@huawei.com
Cc: netconf@ietf.org, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6BBB91DE@dggeml510-mbx.china.huawei.com>
References: <991B70D8B4112A4699D5C00DDBBF878A6BBB91DE@dggeml510-mbx.china.huawei.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/3lllq2AU_4VlXS99vg5Sh9cLM6Y>
Subject: Re: [Netconf] [netmod] NETCONF NMDA <get-data> on conventional datastore
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.26
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: Tue, 05 Jun 2018 09:40:27 -0000

Rohit R Ranade <rohitrranade@huawei.com> wrote:
> Hi All,
> 
> RFC 8342 defines the conventional data-store as below
> 
> "
>      identity conventional {
>        base datastore;
>        description
>          "Abstract base identity for conventional configuration
>           datastores.";
>      }
> "
> 
> So when using the data-store-ref with NETCONF <get-data> as below:
> 
> <rpc message-id="101"
>         xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>      <get-data
>              xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-nmda"
>              xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores">
>        <datastore>ds:conventional</datastore>
>     </get-data>
> </rpc>
> 
> The libyang parser was successfully able to parse this as a valid
> data-store-ref. But conceptually this is not a valid data-store as
> it is an "abstract base identity". 
> NETCONF Server will have to add code to send error when conventional
> data-store comes in input.  I would prefer if we can control this
> using data-model statements then the parser can handle the
> error. Any thoughts ?

I agree.  This would be a useful enhancement to YANG.

FWIW, we have implemented such a vendor-specific extension
(tailf:abstract).

It is also listed on the tracker for future ideas:

https://github.com/netmod-wg/yang-next/issues/33


/martin