Re: [netmod] Question on draft-wu-netmod-factory-default

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 26 March 2019 05:41 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 9D846120286 for <netmod@ietfa.amsl.com>; Mon, 25 Mar 2019 22:41:09 -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, RCVD_IN_DNSWL_NONE=-0.0001, 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 Orfev3i2u4hB for <netmod@ietfa.amsl.com>; Mon, 25 Mar 2019 22:41:07 -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 A7409120282 for <netmod@ietf.org>; Mon, 25 Mar 2019 22:41:06 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 7846B6F4; Tue, 26 Mar 2019 06:41:04 +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 ctIPfrESTW6U; Tue, 26 Mar 2019 06:41:04 +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; Tue, 26 Mar 2019 06:41:04 +0100 (CET)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by hermes.jacobs-university.de (Postfix) with ESMTP id 60D63200A8; Tue, 26 Mar 2019 06:41:04 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10028) with ESMTP id YlBwce-8OKxc; Tue, 26 Mar 2019 06:41:04 +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 AD49F200A7; Tue, 26 Mar 2019 06:41:03 +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; Tue, 26 Mar 2019 06:41:03 +0100
Received: by anna.localdomain (Postfix, from userid 501) id B1B4830078EEEC; Tue, 26 Mar 2019 06:41:02 +0100 (CET)
Date: Tue, 26 Mar 2019 06:41:02 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Qin Wu <bill.wu@huawei.com>
CC: Joe Clarke <jclarke@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20190326054102.tmpo35qzdab6jv3t@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Qin Wu <bill.wu@huawei.com>, Joe Clarke <jclarke@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <B8F9A780D330094D99AF023C5877DABAA487E489@nkgeml513-mbx.china.huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <B8F9A780D330094D99AF023C5877DABAA487E489@nkgeml513-mbx.china.huawei.com>
User-Agent: NeoMutt/20180716
X-ClientProxiedBy: SXCHMB04.jacobs.jacobs-university.de (10.70.0.156) To sxchmb03.jacobs.jacobs-university.de (10.70.0.155)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/YkLGiTpEwwTRBVZKMWmMecm7QNQ>
Subject: Re: [netmod] Question on draft-wu-netmod-factory-default
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 26 Mar 2019 05:41:10 -0000

On Tue, Mar 26, 2019 at 05:15:40AM +0000, Qin Wu wrote:
> 
> So do all these configuration datastores receive a 1:1 copy of <factory-default>?
> [Qin]: This is close to what Andy is asking, we allow multiple target datastore to be reset.

I did understand that you allow multiple targets. My question is if
all targets receive the same content, i.e., whether reset-datastore is
just N-times copy-config or whether there is more to it.

>  If so, if we have a <factory-default>, why is invoking <copy-config> not good enough?
> [Qin]: Netconf <copy-config> operation needs to be extended to allow it to operate on the factory-default datastore.
>    2.  YANG Instance Data [I-D.ietf-netmod-yang-instance-file-format]
> 
> How would this be done? I do not see anything in reset-datastores that provides instance data. The copy-config operation already allows to provide source config inline. Why do we need another way of doing the same?
> [Qin]: In normal copy-config operation, how do we source config inline is used for factory default setting.

RFC 6241 page 43:

      source:  Name of the configuration datastore to use as the source
         of the <copy-config> operation, or the <config> element
         containing the complete configuration to copy.

>  YANG instance data draft could provide generic solution for this. We add a note to see if there is additional parameters that need to be added, will see how to address this.

I am not saying this is needed. I think the WG needs to discuss
whether all four options listed in section 2 of your I-D make sense.
Perhaps 1. and 3. are sufficient (except that I do not know exactly
how 1. is supposed to work).
 
> I do not really understand why one would need to have reset-datastore on <candidate> - is <discard-changes> not good enough?
> [Qin]: It doesn't allow you reset to <candidate> without changing <running>.

Why would that be useful? The normal reset of <candidate> is to
<running>. <candidate> is an editing scratch pad - does it really
make sense to reset <candidate> to <factory-default> without
resetting <running>? What is the use case of this?

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