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

Robert Wilton <rwilton@cisco.com> Mon, 02 July 2018 16:23 UTC

Return-Path: <rwilton@cisco.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 40EA81311B7 for <netconf@ietfa.amsl.com>; Mon, 2 Jul 2018 09:23:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.509
X-Spam-Level:
X-Spam-Status: No, score=-14.509 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
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 AZBSC-x9JG3t for <netconf@ietfa.amsl.com>; Mon, 2 Jul 2018 09:23:08 -0700 (PDT)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A6295130F9F for <netconf@ietf.org>; Mon, 2 Jul 2018 09:23:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=18207; q=dns/txt; s=iport; t=1530548586; x=1531758186; h=subject:to:references:from:message-id:date:mime-version: in-reply-to; bh=3Ql9OSRhu6awTQabmPHFE//zmOgbQVYCQrhdHyEFrP8=; b=Hee0GYBAFtV0LfOGed1fTxNWx3CXlwMRmxp7itr37FnjEPuIDlGLUjW7 pNFAmO/eaVGL4qApHvaNm2U7d/UkzVnLF5GMjWhTYObAqgdvXHRZqh6Hi P2P138RlfCGftsdyEycCrlFSQqFM/+CLzgDWiiOxMzs8lwpLHYhnwDfSs s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CgAADaUDpb/xbLJq1TBgMZAQEBAQEBAQEBAQEBBwEBAQEBgxuBEG0SKIN5iARfjTwIIpAYhQyBegsYAQqBVIE+cUYCg1U0GAECAQECAQECbRwMhTYBAQEBAgEBASEKQRAJAgkCEAgnAwICGwwfEQYBDAYCAQGDHAGBdwgPjCubSIIcH4NcAV+DcYEpBQWKPj+BNgyCJzWDGAEBgTYOPSaCOoJVAplGCY8XBoFAhlKFQ4d6hDuFUoFBOIFSMxoIGxU7gmmBdIQ/hGGFCAE2PjCRWwEB
X-IronPort-AV: E=Sophos;i="5.51,299,1526342400"; d="scan'208,217";a="4924190"
Received: from aer-iport-nat.cisco.com (HELO aer-core-1.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2018 16:23:04 +0000
Received: from [10.63.23.105] (dhcp-ensft1-uk-vla370-10-63-23-105.cisco.com [10.63.23.105]) by aer-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id w62GN3Kl009130; Mon, 2 Jul 2018 16:23:04 GMT
To: Andy Bierman <andy@yumaworks.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Qin Wu <bill.wu@huawei.com>, Kent Watsen <kwatsen@juniper.net>, Ladislav Lhotka <lhotka@nic.cz>, netconf <netconf@ietf.org>
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> <B8F9A780D330094D99AF023C5877DABA9AEBED1A@nkgeml513-mbx.china.huawei.com> <20180702122254.hrws4cneranwwm3w@anna.jacobs.jacobs-university.de> <B8F9A780D330094D99AF023C5877DABA9AEBF04F@nkgeml513-mbx.china.huawei.com> <20180702140156.m7mlohgzzfe3nr4l@anna.jacobs.jacobs-university.de> <CABCOCHQA-DA7pBMQ6j6DQrUGuYtEkdephQ4WL_O5dC5h49HXWw@mail.gmail.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <e2e5332e-48ce-5841-3219-1d7c0fb4958d@cisco.com>
Date: Mon, 02 Jul 2018 17:23:03 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <CABCOCHQA-DA7pBMQ6j6DQrUGuYtEkdephQ4WL_O5dC5h49HXWw@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------4A8359CD732279D682EA706B"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/plnwqd8dv0zdmCn_THLMcpzDWSs>
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 16:23:15 -0000


On 02/07/2018 17:08, Andy Bierman wrote:
>
>
> On Mon, Jul 2, 2018 at 7:01 AM, Juergen Schoenwaelder 
> <j.schoenwaelder@jacobs-university.de 
> <mailto:j.schoenwaelder@jacobs-university.de>> wrote:
>
>     I suggest to try to make the proposal simpler, not more complex.
>
>
>
> +1
>
> IMO the only thing needed is 1 simple identity named "factory".
Yes, I basically agree.

In addition, when a device boots then <startup> is initialized to 
<factory> if it doesn't exist.  Or alternatively, <running> is 
initialized to <factory> if <startup> doesn't exist.
A client can use an RPC to copy <factory> to <startup> or to <running> 
if they want, but then can never write to <factory> (although factory 
could change via a software update).

> Existing protocol operations can be used (e.g, copy-config from 
> factory to running).
Now RESTCONF is datastore aware, it looks like we need to add a 
"copy-config" RPC (or should it just be "copy"?) to RESTCONF to allow 
the contents of one datastore to be copied to another datastore.  Such 
an RPC should be entirely generic and not tied to the factory datastore 
in anyway.  Possibly, related to this, it might be worth considering if 
there are any other operations in NETCONF that should be supported in 
RESTCONF and to do that as a single update to the protocol rather than 
lots of piecemeal extensions.

Thanks,
Rob


>
>
>     /js
>
>
> Andy
>
>
>     On Mon, Jul 02, 2018 at 01:56:54PM +0000, Qin Wu wrote:
>     >
>     >
>     >
>     > 发件人: Juergen Schoenwaelder
>     > 收件人: Qin Wu<bill.wu@huawei.com
>     <mailto:bill.wu@huawei.com><mailto:bill.wu@huawei.com
>     <mailto:bill.wu@huawei.com>>>
>     > 抄送: Kent Watsen<kwatsen@juniper.net
>     <mailto:kwatsen@juniper.net><mailto:kwatsen@juniper.net
>     <mailto:kwatsen@juniper.net>>>;Ladislav Lhotka<lhotka@nic.cz
>     <mailto:lhotka@nic.cz><mailto:lhotka@nic.cz
>     <mailto:lhotka@nic.cz>>>;netconf<netconf@ietf.org
>     <mailto:netconf@ietf.org><mailto:netconf@ietf.org
>     <mailto:netconf@ietf.org>>>
>     > 主题: Re: [Netconf] I-D Action:
>     draft-wu-netconf-restconf-factory-restore-00.txt
>     > 时间: 2018-07-02 20:23:06
>     >
>     > On Mon, Jul 02, 2018 at 12:16:27PM +0000, Qin Wu wrote:
>     > > 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.
>     >
>     > I doubt this will work. If you copy <factory> to startup> and
>     > subsequently <running> to <startup>, there is a copy of
>     <running> left
>     > in <startup>, i.e., the copy of <factory> to startup> had no effect.
>     > [Qin] To address this issue, we can introduce multiple target
>     data sores in the new operation factory restore operation, copy
>     factory datastore to startup and running in one operation, the
>     source will be set to the same factory datastore.
>     >
>     > > 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.
>     >
>     > URLs are an optional capability so far and I do not know what
>     "URL is
>     > set as source" means to me. What is target datastore here? I am not
>     > sure how data flows.
>     > [Qin] see device power on procedure defined in zero touch
>     netconf WG draft, factory restore scheme, in my opinion can be
>     integrated into it. The target datastore(s) can be set to any
>     datasore(s) you want to return factory default.
>     >
>     > > 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.
>     >
>     > What are multiple <running> targets? What are "multiple
>     conceptual flows"?
>     > I am confused.
>     > [Qin] see above, in the above cases,multiple datasores can be
>     set to <startup> and <running> And all other datastore that need
>     to set to factory default. That means in the new operation,
>     multiple target list can be included. If multiple factory defaults
>     are allowed,multiple sources can be included as well.
>     >
>     > Not sure multiple target running case exists,if we can copy one
>     source to multiple instances distributed in multiple logical
>     network elements, that will be great.
>     > /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/
>     <https://www.jacobs-university.de/>>
>
>     -- 
>     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/
>     <https://www.jacobs-university.de/>>
>
>     _______________________________________________
>     Netconf mailing list
>     Netconf@ietf.org <mailto:Netconf@ietf.org>
>     https://www.ietf.org/mailman/listinfo/netconf
>     <https://www.ietf.org/mailman/listinfo/netconf>
>
>
>
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf