Re: [Netconf] candidate config details
Martin Bjorklund <mbj@tail-f.com> Thu, 16 October 2008 18:54 UTC
Return-Path: <netconf-bounces@ietf.org>
X-Original-To: netconf-archive@ietf.org
Delivered-To: ietfarch-netconf-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 77E653A6A6B; Thu, 16 Oct 2008 11:54:47 -0700 (PDT)
X-Original-To: netconf@core3.amsl.com
Delivered-To: netconf@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 2CCA53A684C for <netconf@core3.amsl.com>; Thu, 16 Oct 2008 11:54:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.854
X-Spam-Level:
X-Spam-Status: No, score=-1.854 tagged_above=-999 required=5 tests=[AWL=0.192, BAYES_00=-2.599, HELO_MISMATCH_COM=0.553]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YDNvXqLDqCBz for <netconf@core3.amsl.com>; Thu, 16 Oct 2008 11:54:46 -0700 (PDT)
Received: from mail.tail-f.com (de-0316.d.ipeer.se [213.180.79.212]) by core3.amsl.com (Postfix) with ESMTP id 2D36E3A6A6B for <netconf@ietf.org>; Thu, 16 Oct 2008 11:54:46 -0700 (PDT)
Received: from localhost (c213-100-167-236.swipnet.se [213.100.167.236]) by mail.tail-f.com (Postfix) with ESMTPSA id D7E7176C314; Thu, 16 Oct 2008 20:55:46 +0200 (CEST)
Date: Thu, 16 Oct 2008 20:55:46 +0200
Message-Id: <20081016.205546.06745984.mbj@tail-f.com>
To: andy@netconfcentral.com
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <48F77E9B.90705@netconfcentral.com>
References: <48F77E9B.90705@netconfcentral.com>
X-Mailer: Mew version 5.2.52 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Cc: netconf@ietf.org
Subject: Re: [Netconf] candidate config details
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://www.ietf.org/mailman/private/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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: netconf-bounces@ietf.org
Errors-To: netconf-bounces@ietf.org
Andy Bierman <andy@netconfcentral.com> wrote: > *** Questions about partial locking draft: *** > > If partial locking is used, and some dirty nodes are locked, > but other dirty nodes are not, does a discard-changes by > a 3rd party session work (a) at all, (b)only on the unlocked nodes, > or (c) up to the agent to decide (a) or (b)? It will not work, since discard-changes is supposed to completely reset the candidate, and the dirty locked nodes must not be modified. > Same question for commit? If some nodes are dirty in the candidate, and they are locked in running, then, by the same reasoning, a 3rd party session's commit will not succeed. I think you can view nodes that are locked as if you don't have access to them (while they are locked). > *** Comments on partial locking draft: *** > > It may seem that the manager can ignore the <running> > config and just lock the subtree in the <candidate> > (since writes to the <running> are not allowed). > But if some other session takes out a a global or a partial > <running> lock covering your subtree, you control only > the <candidate> version, and can not commit your changes. Yes. We debated whether to put text about this in the draft or not; maybe we should be explicit about this (if it's not there already). > Sec. 2.4.1, para 4 of partial-lock-03 says: > > A <partial-lock> operation MUST be handled atomically by the NETCONF > server. The server either locks all requested parts of the data > store or none; I.e. if during the operation one of the requested > parts cannot be locked the server MUST unlock all parts that have > been already locked during that operation. > > Clearly, getting all the locks you need at once is important, > and simplifies implementation for the manager. However, this > is not supported in NETCONF <lock> or <partial-lock>. > > IMO, the 'target' parameter should be a leaf-list, not a leaf. > If not a leaf-list, then a 'bits' parameter, since the URL form > is not allowed anyway. Good idea! leaf-list is probably right. /martin _______________________________________________ Netconf mailing list Netconf@ietf.org https://www.ietf.org/mailman/listinfo/netconf
- [Netconf] candidate config details Andy Bierman
- Re: [Netconf] candidate config details Martin Bjorklund