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

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 05 June 2018 09:39 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 152BC130F46; Tue, 5 Jun 2018 02:39:49 -0700 (PDT)
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, 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 foW9k6J3fEjZ; Tue, 5 Jun 2018 02:39:47 -0700 (PDT)
Received: from anna.localdomain (anna.eecs.jacobs-university.de [IPv6:2001:638:709:5::7]) by ietfa.amsl.com (Postfix) with ESMTP id 7D24C130F2B; Tue, 5 Jun 2018 02:39:46 -0700 (PDT)
Received: by anna.localdomain (Postfix, from userid 501) id DE68A21CC666; Tue, 5 Jun 2018 11:39:44 +0200 (CEST)
Date: Tue, 05 Jun 2018 11:39:44 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Rohit R Ranade <rohitrranade@huawei.com>
Cc: "netconf@ietf.org" <netconf@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20180605093944.n2jdakev7y3d6a33@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Rohit R Ranade <rohitrranade@huawei.com>, "netconf@ietf.org" <netconf@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
References: <991B70D8B4112A4699D5C00DDBBF878A6BBB91DE@dggeml510-mbx.china.huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6BBB91DE@dggeml510-mbx.china.huawei.com>
User-Agent: NeoMutt/20180512
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/y973ln3hwW1aC4r1WUpHA99V_zg>
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:39:50 -0000

On Tue, Jun 05, 2018 at 09:26:53AM +0000, Rohit R Ranade wrote:

> 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 ?

A server will have to respond with an error to requests that reference
something (e.g., a datastore) that does not exist on that particular
server. While 'conventional' likely never exists as a datastore, you
sill have to check for the datastores actually supported by your
implementation so the check for 'conventional' likely falls out for
free anyway.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>