Re: [Netconf] comments on draft-wu-netconf-restconf-factory-restore-03

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 05 December 2018 09:36 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 879D3130FBA for <netconf@ietfa.amsl.com>; Wed, 5 Dec 2018 01:36:02 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001] 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 XxErdQzM7QI3 for <netconf@ietfa.amsl.com>; Wed, 5 Dec 2018 01:35:59 -0800 (PST)
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 83CAA130DF9 for <netconf@ietf.org>; Wed, 5 Dec 2018 01:35:59 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 8A555FA7; Wed, 5 Dec 2018 10:35:57 +0100 (CET)
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 etdxHshBpEXs; Wed, 5 Dec 2018 10:35:57 +0100 (CET)
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, 5 Dec 2018 10:35:57 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 701B920043; Wed, 5 Dec 2018 10:35:57 +0100 (CET)
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 ykVrnoX2fxt7; Wed, 5 Dec 2018 10:35:57 +0100 (CET)
Received: from exchange.jacobs-university.de (sxchmb03.jacobs.jacobs-university.de [10.70.0.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "exchange.jacobs-university.de", Issuer "DFN-Verein Global Issuing CA" (verified OK)) by hermes.jacobs-university.de (Postfix) with ESMTPS id 0D3042003F; Wed, 5 Dec 2018 10:35:57 +0100 (CET)
Received: from anna.localdomain (10.50.218.117) by sxchmb03.jacobs.jacobs-university.de (10.70.0.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1591.10; Wed, 5 Dec 2018 10:35:56 +0100
Received: by anna.localdomain (Postfix, from userid 501) id 43B8C300493A3B; Wed, 5 Dec 2018 10:35:55 +0100 (CET)
Date: Wed, 05 Dec 2018 10:35:55 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Qin Wu <bill.wu@huawei.com>
CC: Andy Bierman <andy@yumaworks.com>, Netconf <netconf@ietf.org>
Message-ID: <20181205093555.f4qhytkuyq4bytpn@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Qin Wu <bill.wu@huawei.com>, Andy Bierman <andy@yumaworks.com>, Netconf <netconf@ietf.org>
References: <CABCOCHRBwr0L=9rTH040hL5P3MFma3uvn_ZQyGZG+oPiyiZpdw@mail.gmail.com> <B8F9A780D330094D99AF023C5877DABA9B17C265@nkgeml513-mbs.china.huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <B8F9A780D330094D99AF023C5877DABA9B17C265@nkgeml513-mbs.china.huawei.com>
User-Agent: NeoMutt/20180716
X-ClientProxiedBy: SXCHMB03.jacobs.jacobs-university.de (10.70.0.155) To sxchmb03.jacobs.jacobs-university.de (10.70.0.155)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/OSPyEGuDBsqv04kWb_kMzg-GIY8>
Subject: Re: [Netconf] comments on draft-wu-netconf-restconf-factory-restore-03
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 05 Dec 2018 09:36:06 -0000

On Wed, Dec 05, 2018 at 09:25:38AM +0000, Qin Wu wrote:
> 
> Q2) leaf-list of datastores to reset
> 
> Setting specific datastores to factory default is complex and dangerous.
> It is unlikely a server will support all possible combinations.
> A simple RPC to return the entire server to factory default is much easier to use
> and implement. Vendors can add input parameters to support their variants.
> 
> [Qin]: in most case, we just return entire server to factory default, however for dynamic config, we believe in most case it will be set to empty which is different from other datastore.
> In earlier version, we consider to use choice case, allows default-allow-all case, if this address your comment, we can go with this.
>

I guess I am with Andy here. Let the device decide what it takes to
restart the factory default. If there is a dynamic datastore that
needs to be cleared, the device will do this. Why would a management
application need to know the internals of a reset to factory defaults
operation?

> Q4) why no retrieval without NMDA, factory-default-as-datastore feature?
> 
> [Qin]: talking with Balazs, we think in some cases, <reset-datastore> operation can be used without <factory> datastore.
> 
> It would be useful to know what will happen if <reset-datastore> is invoked
> by retrieving the contents of the factory config. This is not possible if
> the datastore feature is not supported. I suggest another RPC
> 
>    rpc get-factory-defaults {
>       if-feature "not factory-default-as-datastore";
>       output {
>         anydata data;
>       }
>    }

I am generally not a big an of get-* and set-*/edit-* operations that
replicate something for which we already have a solution in place.

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