Re: [Netconf] I-D Action: draft-wu-netconf-restconf-factory-restore-00.txt

Qin Wu <bill.wu@huawei.com> Mon, 02 July 2018 12:16 UTC

Return-Path: <bill.wu@huawei.com>
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 803801277D2 for <netconf@ietfa.amsl.com>; Mon, 2 Jul 2018 05:16:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, 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 zTLn2ppkSkkO for <netconf@ietfa.amsl.com>; Mon, 2 Jul 2018 05:16:37 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 35235130E4F for <netconf@ietf.org>; Mon, 2 Jul 2018 05:16:37 -0700 (PDT)
Received: from lhreml705-cah.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 9BB8AFF8499B3; Mon, 2 Jul 2018 13:16:33 +0100 (IST)
Received: from NKGEML411-HUB.china.huawei.com (10.98.56.70) by lhreml705-cah.china.huawei.com (10.201.108.46) with Microsoft SMTP Server (TLS) id 14.3.382.0; Mon, 2 Jul 2018 13:16:34 +0100
Received: from NKGEML513-MBX.china.huawei.com ([169.254.1.193]) by nkgeml411-hub.china.huawei.com ([10.98.56.70]) with mapi id 14.03.0382.000; Mon, 2 Jul 2018 20:16:28 +0800
From: Qin Wu <bill.wu@huawei.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: Kent Watsen <kwatsen@juniper.net>, Ladislav Lhotka <lhotka@nic.cz>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] I-D Action: draft-wu-netconf-restconf-factory-restore-00.txt
Thread-Index: AQHUDgohYkKCob3+QEeCTKJnrpl8VqR0/o0ggAAY6ACAAV+F8IAAiDSAgAEcNQCAAEg30P//ne4AgAO4TyA=
Date: Mon, 02 Jul 2018 12:16:27 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABA9AEBED1A@nkgeml513-mbx.china.huawei.com>
References: <B8F9A780D330094D99AF023C5877DABA9AEB9E31@nkgeml513-mbx.china.huawei.com> <87a7rfjdcx.fsf@nic.cz> <B8F9A780D330094D99AF023C5877DABA9AEBAF17@nkgeml513-mbx.china.huawei.com> <2A66E046-CE29-42B5-A60C-1313357378DE@juniper.net> <B8F9A780D330094D99AF023C5877DABA9AEBD689@nkgeml513-mbx.china.huawei.com> <B8F9A780D330094D99AF023C5877DABA9AEBD700@nkgeml513-mbx.china.huawei.com> <20180630090808.5g232ydinkbsnddg@anna.jacobs.jacobs-university.de>
In-Reply-To: <20180630090808.5g232ydinkbsnddg@anna.jacobs.jacobs-university.de>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.138.33.244]
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/wkucq2jQmZqEnP1gFHbxJK5DZHI>
Subject: Re: [Netconf] I-D Action: draft-wu-netconf-restconf-factory-restore-00.txt
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: Mon, 02 Jul 2018 12:16:42 -0000

Good point and suggestion. Here is my thought:
In case :startup capability is supported, the factory datastore can be copied into <startup>, restart is not needed since we have loaded content of factory datastore into startup. Startup will be updated with running each time the running is altered. In case of system fatal error, we will consider copy factgory datatore into <startup> again for restore.
In case the restart is needed or device power on is needed, the factory datastore as source may not be set, instead, URL is set as source, the content of source identified by URL can be loaded into target datastore during restart or device repower on. In this case, the proposed factory datastore
and new operation can work together with zero touch bootstrapping procedure proposed in draft-ietf-netconf-zerotouch.

In case :writable-running capability is supported, the factory datastore can be directly copied into <running>, in case of multiple conceptual flows, we can consider to copy one factory datastore into multiple <running> targets.
In case :candidate capability is supported, the factory datastore can be first copied into <candiate> and then the <candidate> is committed into <running>, in this case, startup is not touched.

-Qin
-----邮件原件-----
发件人: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de] 
发送时间: 2018年6月30日 17:08
收件人: Qin Wu
抄送: Kent Watsen; Ladislav Lhotka; netconf@ietf.org
主题: Re: [Netconf] I-D Action: draft-wu-netconf-restconf-factory-restore-00.txt

On Sat, Jun 30, 2018 at 07:05:23AM +0000, Qin Wu wrote:

> One point to add, we hope to support factory restore without 
> reboot/restart and support factory restore with reboot, two cases, 
> this make factory restore can be supported in the whole lifetime of 
> the device.

So is the <factory> datastore conceptually copied into <startup> and then you restart or is the the <factory> datastore conceptually copied into <running>? Yes, <startup> is not mandatory to have, so there may be multiple conceptual flows that are possible. I think it will be helpful to be clear about the conceptual dataflow between the datastores - and once this is clear, it should be relatively easy to define the operations that are necessary.

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