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

Qin Wu <bill.wu@huawei.com> Sat, 30 June 2018 07:05 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 B10BE131022 for <netconf@ietfa.amsl.com>; Sat, 30 Jun 2018 00:05:33 -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 edhV2v4nc3XY for <netconf@ietfa.amsl.com>; Sat, 30 Jun 2018 00:05:32 -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 18F431277BB for <netconf@ietf.org>; Sat, 30 Jun 2018 00:05:32 -0700 (PDT)
Received: from LHREML711-CAH.china.huawei.com (unknown [172.18.7.106]) by Forcepoint Email with ESMTP id 49DFED7F67E2A; Sat, 30 Jun 2018 08:05:29 +0100 (IST)
Received: from NKGEML412-HUB.china.huawei.com (10.98.56.73) by LHREML711-CAH.china.huawei.com (10.201.108.34) with Microsoft SMTP Server (TLS) id 14.3.382.0; Sat, 30 Jun 2018 08:05:30 +0100
Received: from NKGEML513-MBX.china.huawei.com ([169.254.1.193]) by nkgeml412-hub.china.huawei.com ([10.98.56.73]) with mapi id 14.03.0382.000; Sat, 30 Jun 2018 15:05:23 +0800
From: Qin Wu <bill.wu@huawei.com>
To: 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+F8IAAiDSAgAEcNQCAAEg30A==
Date: Sat, 30 Jun 2018 07:05:23 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABA9AEBD700@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>
In-Reply-To: <B8F9A780D330094D99AF023C5877DABA9AEBD689@nkgeml513-mbx.china.huawei.com>
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="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/zGks7PKSRiNy5WRZOIBAOX4AIrA>
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: Sat, 30 Jun 2018 07:05:34 -0000

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.

-Qin
-----邮件原件-----
发件人: Netconf [mailto:netconf-bounces@ietf.org] 代表 Qin Wu
发送时间: 2018年6月30日 14:17
收件人: Kent Watsen; Ladislav Lhotka; netconf@ietf.org
主题: Re: [Netconf] I-D Action: draft-wu-netconf-restconf-factory-restore-00.txt

Thanks for Kent for valuable review.
-----邮件原件-----
发件人: Kent Watsen [mailto:kwatsen@juniper.net] 
发送时间: 2018年6月30日 1:43
收件人: Qin Wu; Ladislav Lhotka; netconf@ietf.org
主题: Re: [Netconf] I-D Action: draft-wu-netconf-restconf-factory-restore-00.txt


I think this is a reasonable problem to solve.

I see the draft defining a new datastore called "factory".  As such, I expect it to primarily follow the guidelines defined
here: https://tools.ietf.org/html/rfc8342#appendix-A.

[Qin]:Yes, we hope a subset of all modules can be targeted to factory default datastore.
We hope configure true node in the <operational> can be targeted to factory default datastore.
We may see factory default datastore as special case of startup datastore,
The difference is startup datastore will be updated after running get altered. The the content in the startup datastore will change over time.

I don't believe this this a RESTCONF specific datastore. I'd expect NMDA-aware NETCONF servers to also be able to interact with this datastore.

[Qin]: Tend to agree, Rohi raised similar point on the list.
Yes, NMDA-aware NETCONF servers can take advantage of this new datastore as well.


I don't think there is a need for a factory-restore RPC. I think that the existing NC/RC operations and a "reboot" RPC would be
sufficient. I'm unsure which published RFC defines the "reboot"
RPC, it's possible that none do.

[Qin]: we see existing NC operations are not sufficient to support factory default setting, take copy-config as example, without 
New datastore to be defined for factory default, we can not return target datastore to factory default.
<delete-config> can return the device to factory default setting, but <delete-config> is only applied to startup and not applicable to candidate and running.

For RESTCONF, it doesn't support <delete-config> like operation using HTTP method, it support <copy-config> like operation, i.e., HTTP PUT, but HTTP put
Can not return the device to factory default setting without new factory default datastore.
RESTCONF also lack URL capability. In this draft, we also make an assumption that NETCONF is not supported.

For reboot, we see the example of reboot operation in RFC8040, 
but reboot lacks semantics for factory restore, i.e., restore factory default configuration on the device to the specified
Target datastore.
In some complicated cases, we may need to support system restore, we need to consider to how to restore saved configuration at any checkpoint or at any time on the device to the specified
Target datastore. Reboot doesn't have such semantics. Reboot seems only indicate that the server is restarted, but there is not initial state or configuration that should be loaded into the device.

Kent // contributor 



_______________________________________________
Netconf mailing list
Netconf@ietf.org
https://www.ietf.org/mailman/listinfo/netconf