[Netconf] comments on draft-wu-netconf-restconf-factory-restore-03

Andy Bierman <andy@yumaworks.com> Sun, 02 December 2018 18:03 UTC

Return-Path: <andy@yumaworks.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 8B575127598 for <netconf@ietfa.amsl.com>; Sun, 2 Dec 2018 10:03:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.359
X-Spam-Level:
X-Spam-Status: No, score=-3.359 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-1.459, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 VJ3U-l6vTdid for <netconf@ietfa.amsl.com>; Sun, 2 Dec 2018 10:03:11 -0800 (PST)
Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F327F126CC7 for <netconf@ietf.org>; Sun, 2 Dec 2018 10:03:10 -0800 (PST)
Received: by mail-lf1-x131.google.com with SMTP id l10so7439876lfh.9 for <netconf@ietf.org>; Sun, 02 Dec 2018 10:03:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=lElCKqJl/FSLyvW0Uj2Vm6toeemhMpoHXoUWG8mk2ps=; b=biLEplnsQXGdnPc6/tlMvAjdZ9pRNORc+j8SYnAWd+ehiBua8XqblZVfKR9tZyytt5 7KSXOk7SR7x4u0wIc9kMe1d6+RVS19110duABJa6TvZ2X/sTBoCnO8dZNP3T1XsTtwxN uLSpt2UYJIv7TBcPpwMJ85MjJaesI5w/q3rjPimE/34XZsuyZLq0FAmNxaPSbYSvh/rb 19HdNEZ6POewW0+4Vp7XQ19F0yhzg50urqML0/9swtMriC7PU0ChJMVfM1f4SIdvZRU0 mp6EY2aDPWifZ0ud7tvTweW1HrVjjrBsLglbV5A4YDrgj6RSQTI5tDST8PfJ6C+dsC4U A/QQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lElCKqJl/FSLyvW0Uj2Vm6toeemhMpoHXoUWG8mk2ps=; b=qHppAKmdbllh2f64GeuLvgUuop1D2Rc06eC6L6jK1WRjNX3+worLN5mzoRZenC/TO9 1op8CNwyVU/I/m8FAtPPGRdd5dbF3K2gJa0DHQXCmJEC5nQ03FFNo1IFIwNKJ+n/WeN7 BWfCN+o0BAhFdOzEjsxyJKTjcrorMJVpZ0Memij8t9c8Ki3yeMP2jrX60UU8YPPl1DlT lgmlganpgVT1AJ3kOVJmdmC55Q0TT9k6ugxoz49va0tTsGWgJ+NLfk+Re8EicFMH5HMP XCeO+BXQuAH5nGyz9Z7JpdHQ2aO8ZdULrMQBIVKPmK+A25E8Qy1kU3u6v/4TuEj3WPDt K1gQ==
X-Gm-Message-State: AA+aEWbMLIPHlipvC2ciNOwYY8DpXsrwlz16nH3j+FPK5vkgsKo3MPfB 7/+5goC/Zo5te7wMvEn3Gry5+5wx/OYM3ZjF6qt8uykQ
X-Google-Smtp-Source: AFSGD/U79xwJ18+PlZKu4TrwqvtG/xFCTcvULiSNJ2Pogdx+Qty2HOOimmncccOkU/uQgdXbdYCh9U5q9R2e2zuy9ro=
X-Received: by 2002:a19:d58e:: with SMTP id m136mr8053125lfg.70.1543773788403; Sun, 02 Dec 2018 10:03:08 -0800 (PST)
MIME-Version: 1.0
From: Andy Bierman <andy@yumaworks.com>
Date: Sun, 02 Dec 2018 10:02:57 -0800
Message-ID: <CABCOCHRBwr0L=9rTH040hL5P3MFma3uvn_ZQyGZG+oPiyiZpdw@mail.gmail.com>
To: Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000458fd1057c0dd8f6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/TQFTkxBWCHrS757tooUYr7enXwc>
Subject: [Netconf] comments on draft-wu-netconf-restconf-factory-restore-03
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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: Sun, 02 Dec 2018 18:03:14 -0000

Hi,

I have comments and questions on the functional requirements and
scope of the problem(s) to be solved. Scope seem to be:
   G1) reset device to factory config
   G2) set any datastore to contents of the factory config with
<copy-config>
   G3) retrieve contents of factory-config with <get-data>

Q1) what is the factory datastore?

The concept of a factory default config is universal but the implementation
is not.
This needs to be precisely defined in the draft.

There is actually a factory-startup (--> running) and factory-intended.
By default the factory-startup is likely an empty config (i.e. just the
YANG defaults
supported by the server).  The factory-intended is implementation-specific.

So what is standardized? factory-startup or factory-intended? both?

Q2) leaf-list of datastores to reset

Setting specific datastores to factory default is complex and dangerous.
It is unlikely a server will support all possible combinations.
A simple RPC to return the entire server to factory default is much easier
to use
and implement. Vendors can add input parameters to support their variants.

Q3) filtered retrieval of the factory settings

If a real datastore is used as proposed, then is subtree and XPath
filtering required?
It seems all operations except edit have to be supported by the server.

Q4) why no retrieval without NMDA, factory-default-as-datastore feature?

It would be useful to know what will happen if <reset-datastore> is invoked
by retrieving the contents of the factory config. This is not possible if
the datastore feature is not supported. I suggest another RPC

   rpc get-factory-defaults {
      if-feature "not factory-default-as-datastore";
      output {
        anydata data;
      }
   }


Andy