Re: [netmod] NMDA DataStore Read-Only / Write-able programmability

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Thu, 03 May 2018 10:30 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 9164512D889 for <netmod@ietfa.amsl.com>; Thu, 3 May 2018 03:30:34 -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 iao2cVx09_PD for <netmod@ietfa.amsl.com>; Thu, 3 May 2018 03:30:32 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2E62D12711D for <netmod@ietf.org>; Thu, 3 May 2018 03:30:32 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 581F0B66; Thu, 3 May 2018 12:30:30 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id ac_bd0jdYLT5; Thu, 3 May 2018 12:30:30 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Thu, 3 May 2018 12:30:30 +0200 (CEST)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 3336B20035; Thu, 3 May 2018 12:30:30 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id p8Nziy228yoG; Thu, 3 May 2018 12:30:29 +0200 (CEST)
Received: from elstar.local (unknown [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id D264420031; Thu, 3 May 2018 12:30:29 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id 6BB5142CB431; Thu, 3 May 2018 12:30:27 +0200 (CEST)
Date: Thu, 3 May 2018 12:30:27 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Rohit R Ranade <rohitrranade@huawei.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20180503103027.m7ll3tnkcdnakhoy@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Rohit R Ranade <rohitrranade@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <991B70D8B4112A4699D5C00DDBBF878A6B1F7204@DGGEMA502-MBS.china.huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6B1F7204@DGGEMA502-MBS.china.huawei.com>
User-Agent: NeoMutt/20171215
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/E838GAFunhL_-LQS2bDdufKvUHA>
Subject: Re: [netmod] NMDA DataStore Read-Only / Write-able programmability
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 03 May 2018 10:30:35 -0000

On Thu, May 03, 2018 at 10:10:53AM +0000, Rohit R Ranade wrote:
> Hi All,
> 
> Currently I see in the NMDA RFC, that whether a data-store is write-able or read-only is mentioned in the RFC sections, but not in the YANG module. So user cannot know if write-able or not by looking at the NMDA Yang modules ..
> 
> For example <intended> and <operational> are read-only. So the NETCONF <edit-data> cannot be done on these data-stores.
> 
> "If an <edit-data> operation is invoked on a non-writable
>    datastore, then an error is returned, as specified in
>    "ietf-netconf-nmda"" ==> How can ietf-netconf-nmda know at run-time whether a data-store supports write or not ? Hard-code ? How to handle for new data-stores which use the dynamic identity  ?
> 

For well-known datastores, the properties are fixed. A server
implementation will know that <intended> and <operational> is not
writable and clients may know as well. There was some discussion to
expose more datastore metadata at runtime (I think the discussion was
more in the context of the yang library) but this was then left for
future work in order to finish the NMDA work quickly.

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