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

Joe Clarke <jclarke@cisco.com> Tue, 26 March 2019 07:37 UTC

Return-Path: <jclarke@cisco.com>
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 CFA4C12028C for <netmod@ietfa.amsl.com>; Tue, 26 Mar 2019 00:37:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.502
X-Spam-Level:
X-Spam-Status: No, score=-14.502 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-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 gmOGmAWG7Bmz for <netmod@ietfa.amsl.com>; Tue, 26 Mar 2019 00:37:48 -0700 (PDT)
Received: from rcdn-iport-6.cisco.com (rcdn-iport-6.cisco.com [173.37.86.77]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 10F76120047 for <netmod@ietf.org>; Tue, 26 Mar 2019 00:37:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2402; q=dns/txt; s=iport; t=1553585868; x=1554795468; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=lVW7bm+ZTDZqDQCW2O3x2B7zAZmPFxQYaUEI/vGuJ/w=; b=PU/fOd1LVSBpleA83e14trhvnryO5Prp8Rz327DYCUWGI5r4hdIcC/aJ FRqhkvL0qlfynxYHySRPdqfhNSPW8dsH8VkBCcDN5WSLmveIKoJRLxvLo +AzQLpz0Nq5VXNF8dd5vIeMP5Bj85hK3Y7fI7HPykcqEg5Y4CtxEgeBdD s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CtAADE1Zlc/5hdJa1kGgEBAQEBAgE?= =?us-ascii?q?BAQEHAgEBAQGBZYIRa00zhDWTQIFgCCWYT4FnD4RsAoUbIjgSAQEDAQEJAQM?= =?us-ascii?q?CbSiFSgEBAQMBIwRiCw4KAgIZDQICVwYBDAgBAYMegW4IrUp8M4o1gQskizI?= =?us-ascii?q?XgUA/gTgMgl8+hC2DIYJXA4oqEjGHDpMeCZM1BhmLJYhdix2TWIFkIYFWTSM?= =?us-ascii?q?VgyiQZiMDkHgBAQ?=
X-IronPort-AV: E=Sophos;i="5.60,271,1549929600"; d="scan'208";a="539855561"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by rcdn-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 26 Mar 2019 07:37:46 +0000
Received: from [192.168.10.113] (rtp-jclarke-nitro5.cisco.com [10.118.87.86]) by rcdn-core-1.cisco.com (8.15.2/8.15.2) with ESMTP id x2Q7bjwc022942; Tue, 26 Mar 2019 07:37:46 GMT
To: Qin Wu <bill.wu@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <B8F9A780D330094D99AF023C5877DABAA487E4BE@nkgeml513-mbx.china.huawei.com> <20190326055118.nhm27b3gsivthi37@anna.jacobs.jacobs-university.de> <87f6395d-5409-1d4c-4566-1e3ebe81e4d7@cisco.com> <20190326072242.vqfxr7lvsyybjmri@anna.jacobs.jacobs-university.de>
From: Joe Clarke <jclarke@cisco.com>
Openpgp: preference=signencrypt
Autocrypt: addr=jclarke@cisco.com; prefer-encrypt=mutual; keydata= mQINBFx0f7kBEACpXvK/9vZPCzcdpjMCF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VKNhzrHX/YtV13c3BP6Zx56MW2t5KnmV0MF97h2vejh/DHPSymz5blUv2Mr 0kknFYhJ+tp/rqP7B8+HABEBAAGJAjYEGAEIACAWIQTjSv1eu4vCQPyfBj2za72B6z1jqgUC XHR/uQIbDAAKCRCza72B6z1jqpFIEACKHqK4wdmimwJU+uq3HJcDBP12vnISDxkrcq19xWCv 01EWp1DR4izRLJXFIke7jlGk1GWfHKkjpUmkXOdujxYZvrVUXD9BwnNDWfDlZaPgpQNoMIlH Pcnq+MovlsuHiLnA29RRxUfRRn49fnpB4MQhB9tzsHGcghApFxB0h/CLs8ZWLTP6EDyDSNem ynEeJ8YjsbyBDqmAHs/+PS14FS7R6jHW8XNonzu5qKVvwkfA5EAI17CLJWTLkFwa3y7vOL6v x6qsoGNPvN4kolAGhz8cm2zqyZ/ts3paYnjZnBWnziYATv3hZzijcLKlLKBJaP7dUlkdNePN yzLkeN+oCVcz1DTGBhfIzlp+Dk3ySFoV2bYyEqiFmttpaDcBbPoB1LKvVZE/C1/f0Z9Tc0Fi VYQ2R60npDISUCanFF0JsN14PGoJdaV90Ouitr8GBzUJpKXFYi93L4M8gHCnSGWmjqAFGNj9 374pUwI8wbBAK5GI1hmjQZLA1UFM/SJ9J86gBzPUPNFR1xTSU+GTEufGHtcQ7wL42X+xz/lv 2pzhluScPl2WWXnwMSiE1a8AaVIhJvsrHuBxNH2l0RHuknWvJOjKtn6wdvPnEURJMH5dQ0jl QFqXPmJVYpL5AvqTYKXtS0Jy1z9oQN6ZUngZoaIYLDogKSQ9DOYd8WvdmOE24auWtA==
Organization: Cisco
Message-ID: <182da65f-6863-9a99-5287-9700492eeb70@cisco.com>
Date: Tue, 26 Mar 2019 03:37:45 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.6.0
MIME-Version: 1.0
In-Reply-To: <20190326072242.vqfxr7lvsyybjmri@anna.jacobs.jacobs-university.de>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Outbound-SMTP-Client: 10.118.87.86, rtp-jclarke-nitro5.cisco.com
X-Outbound-Node: rcdn-core-1.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/c7z0W3hzDyccZJeOSy1GyuUI_Rg>
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 07:37:50 -0000

On 3/26/19 03:22, Juergen Schoenwaelder wrote:
> On Tue, Mar 26, 2019 at 03:12:26AM -0400, Joe Clarke wrote:
>> On 3/26/19 01:51, Juergen Schoenwaelder wrote:
>>> Qin,
>>>
>>> the idea should be to make things simpler, not more complex. Perhaps
>>> it is not necessary to expose N options to reset a device. Perhaps a
>>> simple "factory-reset" RPC which resets all relevant datastores in an
>>> implementation specific manner is sufficient. Why expose more details
>>> to the management client?
>>
>> This would certainly make it simpler from the RPC standpoint.  However,
>> if one can <get-data> from the factory-default DSes, I still think there
>> is a need to know what factory-default DS maps to what other DS (in the
>> case where there might be multiple that are different).
>>
> 
> The notion of multiple factory-default datastores sounds complex. And
> what is a management application going to do with them? How would a
> management application know which sets of datastores to reset together
> in a meaningful way?

This is why I think having a single RPC to "reset the device to factory"
makes sense.  Not to say that's the only use case, but it would be
useful in a number of cases.

> 
> My naive interpretation of the factory default DS (a single one) would
> be that it exposes the content you will find in <running> after the
> factory-reset has been executed. An extended version of Figure 2 of
> RFC 8342 would look like this:

Yep, this makes sense.  And I fully admit that my use case is likely
vendor-specific, but we may not be the only vendor with ancillary
datastores that do not look like <running> or <startup>.

Joe

> 
>      +-------------+                 +-----------+        +-----------+
>      | <candidate> |                 | <startup> |        | <factory> |
>      |  (ct, rw)   |<---+       +--->| (ct, rw)  |        | (ct, ro)  |
>      +-------------+    |       |    +-----------+        +-----------+
>             |           |       |           |                   |
>             |         +-----------+         |                   |
>             +-------->| <running> |<--------+                   |
>                       | (ct, rw)  |<----------------------------+
>                       +-----------+
> 
> And exposing such a factory default datastore would be optional I
> think.
> 
> /js
>