Re: [Netconf] netconf-config-change target in case of delete operation

Martin Bjorklund <mbj@tail-f.com> Wed, 14 December 2016 11:03 UTC

Return-Path: <mbj@tail-f.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 D34ED129A42 for <netconf@ietfa.amsl.com>; Wed, 14 Dec 2016 03:03:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.797
X-Spam-Level:
X-Spam-Status: No, score=-4.797 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-2.896, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 r9nKsSS5Fx3e for <netconf@ietfa.amsl.com>; Wed, 14 Dec 2016 03:03:16 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 7BDF7129D30 for <netconf@ietf.org>; Wed, 14 Dec 2016 03:03:14 -0800 (PST)
Received: from localhost (unknown [173.38.220.36]) by mail.tail-f.com (Postfix) with ESMTPSA id CC3441AE03EE; Wed, 14 Dec 2016 12:03:12 +0100 (CET)
Date: Wed, 14 Dec 2016 12:03:11 +0100
Message-Id: <20161214.120311.1883256843897609564.mbj@tail-f.com>
To: lmacko@cisco.com
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <58ad2f124ce14b77a71e799c23801acd@XCH-ALN-015.cisco.com>
References: <58ad2f124ce14b77a71e799c23801acd@XCH-ALN-015.cisco.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/KQM3OFAuSIYKmhzFeIP42k2Zlrs>
Cc: netconf@ietf.org
Subject: Re: [Netconf] netconf-config-change target in case of delete operation
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.17
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: Wed, 14 Dec 2016 11:03:21 -0000

"Lukas Macko -X (lmacko - PANTHEON TECHNOLOGIES at Cisco)" <lmacko@cisco.com> wrote:
> Hi,
> 
> I am trying to implement netconf-config-change notifications defined
> in RFC6470.
> 
> The issue I came across is that I am not sure what instance id should
> be provided for leaf /netconf-config-change/list/target in case of
> delete or remove operation.
> Since the target leaf doesn't specify require-instance false in
> schema, I can not specify instance id of deleted node to pass the
> validation.

I think the intention was that you should set the target to the
deleted instance.  But you are right, this would need a
"require-instance false;".

However, you can set it to the deleted node's parent and the operation
to 'merge'.


/martin