[Netconf] delete-config on candidate

"Jonathan Hansford" <jonathan@hansfords.net> Mon, 17 December 2018 16:40 UTC

Return-Path: <jonathan@hansfords.net>
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 24AFF130EC2 for <netconf@ietfa.amsl.com>; Mon, 17 Dec 2018 08:40:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.99
X-Spam-Level:
X-Spam-Status: No, score=-1.99 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, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=hansfords.net
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 tzTmrjaJDu5B for <netconf@ietfa.amsl.com>; Mon, 17 Dec 2018 08:40:23 -0800 (PST)
Received: from mail.myfast.site (mail.myfast.site [109.203.117.12]) (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 3DD92128CB7 for <netconf@ietf.org>; Mon, 17 Dec 2018 08:40:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=hansfords.net; s=default; h=Content-Type:Mime-Version:Reply-To:Message-Id: Date:Subject:To:From:Sender:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6FEICGBpYF5X0vOr+FEEPDMgnxDtaPwPu5UcIjYKvRE=; b=13Fdt/aiZvcKN8wrPvejbQZKbw IcAI7/c3eNwYVfkWE3Zvu4bIkN9dml3SixYCv8PdYrgZj8xq0ulb/78DAwUH6rDlDVoFpiXKGEg2v utUPixvxLClp6WpQwv4Af11kVJZ+Icw1AppRFCRzCT2J1IyiOoBcNGlZFCwELIhyIsDTojFnWQpWL b6uh8H+IHmoLXFuYpla0EW3Y/hRig1N2PutQfatjJm/EOMnb0dyfWNrZzh6YB55xKH2YdeuZdV+oc ExIhJZVL+qWeRS66viXgYeXYID66/V6DGVGrcCLRkUXBH6Od38/4Ojt5dcWDA071zp2tnpUlTWgOQ adJXrE1Q==;
Received: from [51.52.247.166] (port=51879 helo=[172.16.1.65]) by mail.myfast.site with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from <jonathan@hansfords.net>) id 1gYvwK-00BdSh-Ae; Mon, 17 Dec 2018 16:40:20 +0000
From: Jonathan Hansford <jonathan@hansfords.net>
To: "netconf@ietf.org" <netconf@ietf.org>
Date: Mon, 17 Dec 2018 16:40:18 +0000
Message-Id: <em6adf925f-5933-4fdb-849b-d54aed61e01d@morpheus>
Reply-To: Jonathan Hansford <jonathan@hansfords.net>
User-Agent: eM_Client/7.2.34062.0
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="------=_MB8A7855E6-6A89-47C3-A9DC-0F86BDA66715"
X-Antivirus: Avast (VPS 181217-4, 17/12/2018), Outbound message
X-Antivirus-Status: Clean
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - mail.myfast.site
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - hansfords.net
X-Get-Message-Sender-Via: mail.myfast.site: authenticated_id: jonathan@hansfords.net
X-Authenticated-Sender: mail.myfast.site: jonathan@hansfords.net
X-Source:
X-Source-Args:
X-Source-Dir:
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/VUzIuwuBKW1bFElQNbukahGu5EM>
Subject: [Netconf] delete-config on candidate
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: Mon, 17 Dec 2018 16:40:26 -0000

Hi,

In 2009-2010 the question was asked whether the <delete-config> 
operation was allowed on the candidate configuration datastore. In May 
2010 it was stated "The <delete-config> definition need not list all 
disallowed options. But the section on :candidate does not like (sic) 
<delete-config> as a modified operation.  This means delete-config is 
not allowed." (See Re: [Netconf] delete-config on candidate? 
<https://mailarchive.ietf.org/arch/msg/netconf/k-ioZ8Ev3vc27ky4dHH-cQtTEnY>)

The implication is that, unless something is explicitly stated as being 
allowed (in this case in RFC 4741 and, presumably, by extension RFC 
6241), it is not allowed.

I have just checked RFC 6241 and, on that basis, come to the following 
conclusions:
<copy-config> : <running>, <candidate>, <startup> and <url> are allowed 
as sources and targets<delete-config> : <startup> and <url> are allowed 
as targets; <running> is explicitly excluded; <candidate> is implicitly 
excluded<edit-config> : <running> and <candidate> are allowed as 
targets; <startup> and <url> are implicitly excluded, though <url> can 
be the config<get-config> : <candidate> and <startup> are allowed as 
sources; <running> is used in examples and therefore I assume this 
constitutes an implicit inclusion; <url> is implicitly excluded<lock> 
and <unlock> : <running>, <candidate> and <startup> are allowed as 
targets; <url> is implicitly excluded<validate> : <candidate>, <startup> 
and <url> are allowed as sources; <running> is implicitly excluded
So, in summary:
<running> is not a valid target for <delete-config> or a valid source 
for <validate>; it is probably a valid source for 
<get-config><candidate> is not a valid target for 
<delete-config><startup> is not a valid target for <edit-config><url> is 
not a valid target for <edit-config> (though it can be the config), 
<lock> or <unlock>, or a valid source for <get-config>
Is that the general understanding of which operations can be used on 
which datastores?

Thanks,

Jonathan

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus