Re: [netmod] Query about draft-ietf-netconf-rfc7895bis-06

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 09 May 2018 09:54 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 26EBE12EB88 for <netmod@ietfa.amsl.com>; Wed, 9 May 2018 02:54:11 -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] 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 4CwUw-o-fHlL for <netmod@ietfa.amsl.com>; Wed, 9 May 2018 02:54:05 -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 824A612EB96 for <netmod@ietf.org>; Wed, 9 May 2018 02:53:56 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 534753B; Wed, 9 May 2018 11:53:55 +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 vf8kwrSZd5Pl; Wed, 9 May 2018 11:53:54 +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; Wed, 9 May 2018 11:53:55 +0200 (CEST)
Received: from localhost (demetrius4.jacobs-university.de [212.201.44.49]) by hermes.jacobs-university.de (Postfix) with ESMTP id 3DACE20035; Wed, 9 May 2018 11:53:55 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius4.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id Qna_gd6XbuOR; Wed, 9 May 2018 11:53:54 +0200 (CEST)
Received: from elstar.local (unknown [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 9961A20031; Wed, 9 May 2018 11:53:54 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id B4CB542D0C37; Wed, 9 May 2018 11:53:52 +0200 (CEST)
Date: Wed, 09 May 2018 11:53:52 +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: <20180509095352.zahi7yuljb7ucd4x@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: <991B70D8B4112A4699D5C00DDBBF878A6B203A98@DGGEMA502-MBS.china.huawei.com> <20180509063034.iclb6vbbua5nqu6p@elstar.local> <991B70D8B4112A4699D5C00DDBBF878A6B204D26@DGGEMA502-MBS.china.huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6B204D26@DGGEMA502-MBS.china.huawei.com>
User-Agent: NeoMutt/20171215
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/p_Md1X5ylmEh8JwnFEYBhy6lCfc>
Subject: Re: [netmod] Query about draft-ietf-netconf-rfc7895bis-06
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: Wed, 09 May 2018 09:54:22 -0000

On Wed, May 09, 2018 at 09:12:12AM +0000, Rohit R Ranade wrote:
> On Wed, May 09, 2018 at 02:31:15AM +0000, Rohit R Ranade wrote:
> > Hi All,
> > 
> > 
> > 1.       "import-only-module" is currently under the "module-set" list. How does the client benefit by learning which module-set imports which modules ?
> 
>               All non import-only modules of the schema are implemented
>               with their associated features and deviations.
> 
> Modules in module-set/module are modules a datastore referencing the module set implements, modules in module-set/import-only-module are modules a datastore referencing the module set only imports from.
>  
> > 2.       Whether we can keep the "import-only-module" as a sibling to module-set. And let it list all the imported modules.
> 
> A module set is a self contained set of modules and import only modules.
> 
> [Rohit R Ranade] One use-case I thought of was that a client was concerned with only some data-stores. So they can download the schema of only those modules and their imported modules of their data-stores of interest. But if this was the case, then the "checksum" is of no use to them, as they will not know whether their intended data-store changed or not. Is there any other use-case for the import-only-module being part of module-set ?

The checksum indicates a change in YANG library. If a client is only
interested in some datastore schemas, then the client may reload data
even though the specific datastore schema did not change. There were
versions with more checksum objects but at the end we removed them and
kept only the one that is essential to keep. Note, if you use
RESTCONF, then ETAGS may help with more granular checks. (In fact,
instead of spreading checksum objects all over, it seems RESTCONF does
not really need them and if NETCONF needs more granular chance checks,
it seems a generic solution that can work on arbitrary subtrees is a
better solution than spreading checksum objects everywhere.

The use-case for import-only-modules being part of a module set is to
allow a module-sets to be referential complete, i.e., different
module-sets may have diffferent import-only-modules.
 
> > 4.       Also I feel the text about "netconf-capability-change" notification based on yang-library checksum should be moved to the NETCONF NMDA draft.  Is it not more suitable there ?
> 
> The reason is that NMDA is a very generic architectural document and as such it should not detail specifics of concrete notifications.
> These details belong into the specific documents. The NMDA document is a root of a document dependency tree, we should not create a mesh of document dependencies.
> [Rohit R Ranade] Please note I mentioned " should be moved to the NETCONF NMDA draft ", by which I meant draft-ietf-netconf-nmda-netconf-05, not the RFC 8342

Sorry for my mis-understanding. YANG library defines the checksum and
the checksum may trigger a netconf-capability-change notification, so
this is likely why talk about the netconf-capability-change notification
in YANG library.

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