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

"Rob Wilton (rwilton)" <rwilton@cisco.com> Tue, 26 March 2019 09:22 UTC

Return-Path: <rwilton@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 DE4681202A1 for <netmod@ietfa.amsl.com>; Tue, 26 Mar 2019 02:22:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, 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 vUro8BwJ36Au for <netmod@ietfa.amsl.com>; Tue, 26 Mar 2019 02:22:28 -0700 (PDT)
Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E63EF12029B for <netmod@ietf.org>; Tue, 26 Mar 2019 02:22:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2724; q=dns/txt; s=iport; t=1553592147; x=1554801747; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=PfZrkop2xpDgEaqm33h+IUfOvWsBPe1p/B1FeQqBtRk=; b=eHZ11kTIjsb8axYB+fplMnBi3MVaf1ofZiiArCCNESOuTCjwPSTi2b/Z M2hBjdniy8wy8aIQUV0GF/YXzCZ23b1kGZIM4fY/Z8nYI59RvPUQHLy5e DOdTRZBfvlG4XAaLvr3aJLq5CbUMPPHeqaDMFZ9fQV4KQiv9IXT5nzez3 w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BEAACl7plc/4gNJK1hAxkBAQEBAQE?= =?us-ascii?q?BAQEBAQEHAQEBAQEBgWWCEWiBAycKmVGYT4FnDQEBGAuEA0YChR8iOBIBAQM?= =?us-ascii?q?BAQkBAwJtHAyFSgEBAQQBASUTNAsMAgICAQgOAgEEAQEBHhAbDAsdCAEBBAE?= =?us-ascii?q?NBQiDG4F1D64RM4owBQWBKosyF4FAP4QjPoJhAQGBSjgmhRoDiioSml0JApM?= =?us-ascii?q?xIZQCix2TMAIRFYEuNiGBVnAVO4JshiuEYYU/QTGPKYEfAQE?=
X-IronPort-AV: E=Sophos;i="5.60,271,1549929600"; d="scan'208";a="537768732"
Received: from alln-core-3.cisco.com ([173.36.13.136]) by rcdn-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 26 Mar 2019 09:22:26 +0000
Received: from XCH-ALN-014.cisco.com (xch-aln-014.cisco.com [173.36.7.24]) by alln-core-3.cisco.com (8.15.2/8.15.2) with ESMTPS id x2Q9MQZw007978 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 26 Mar 2019 09:22:26 GMT
Received: from xch-rcd-007.cisco.com (173.37.102.17) by XCH-ALN-014.cisco.com (173.36.7.24) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 26 Mar 2019 04:22:25 -0500
Received: from xch-rcd-007.cisco.com ([173.37.102.17]) by XCH-RCD-007.cisco.com ([173.37.102.17]) with mapi id 15.00.1473.003; Tue, 26 Mar 2019 04:22:25 -0500
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Joe Clarke (jclarke)" <jclarke@cisco.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Question on draft-wu-netmod-factory-default
Thread-Index: AdTjkxFcTn/lCV6PJUaC2JeIK+aw5QALsXgAAALVZAAAAFvKAAAGXIxw
Date: Tue, 26 Mar 2019 09:22:25 +0000
Message-ID: <fcfc5171106c4caaab206599b3dd9299@XCH-RCD-007.cisco.com>
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>
In-Reply-To: <20190326072242.vqfxr7lvsyybjmri@anna.jacobs.jacobs-university.de>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.61.79.96]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Outbound-SMTP-Client: 173.36.7.24, xch-aln-014.cisco.com
X-Outbound-Node: alln-core-3.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/8AoSUDToQ54Q1vnDmGJxu6cLKcU>
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 09:22:30 -0000

+1 to Juergen's comments and diagram.

Thanks,
Rob


> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Juergen
> Schoenwaelder
> Sent: 26 March 2019 08:23
> To: Joe Clarke (jclarke) <jclarke@cisco.com>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] Question on draft-wu-netmod-factory-default
> 
> 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?
> 
> 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:
> 
>      +-------------+                 +-----------+        +-----------+
>      | <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
> 
> --
> 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/>
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod