Re: [netconf] Query regarding rfc6241 - 7.2

Martin Bjorklund <mbj@tail-f.com> Wed, 15 January 2020 12:01 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 A7A0C1200A3 for <netconf@ietfa.amsl.com>; Wed, 15 Jan 2020 04:01:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, 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 Ev2VL5z4txF2 for <netconf@ietfa.amsl.com>; Wed, 15 Jan 2020 04:01:28 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 1139212006D for <netconf@ietf.org>; Wed, 15 Jan 2020 04:01:27 -0800 (PST)
Received: from localhost (unknown [173.38.220.41]) by mail.tail-f.com (Postfix) with ESMTPSA id 76FF51AE0351; Wed, 15 Jan 2020 13:01:23 +0100 (CET)
Date: Wed, 15 Jan 2020 13:00:46 +0100
Message-Id: <20200115.130046.2182524722233687962.mbj@tail-f.com>
To: arunapotti@gmail.com
Cc: netconf@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <CACpTNnahb=o6PHqqzbdYi+QcN56HQBJNzBk+VqY8xGfC5ScpcA@mail.gmail.com>
References: <CACpTNnahb=o6PHqqzbdYi+QcN56HQBJNzBk+VqY8xGfC5ScpcA@mail.gmail.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/yUc5CVhwJUPKoFFw15EwMS1jOiY>
Subject: Re: [netconf] Query regarding rfc6241 - 7.2
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG 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, 15 Jan 2020 12:01:35 -0000

Hi,

It seems you are setting the administrative-state to 'outOfService' on
a set of interfaces, and at the same time you delete these
interfaces.  So instead you should simply just delete them.

Alternatively, fist send one edit-config that sets the
administrative-state, and then a second edit-config with the deletes.


/martin




aruna potti <arunapotti@gmail.com> wrote:
> Hi,
> 
> I have a question in section 7.2 of rfc6241.
> 
> If the <edit-config> operation contains multiple sub-operations
>       that apply to the same conceptual node in the underlying data
>       model, then the result of the operation is undefined (i.e.,
>       outside the scope of the NETCONF protocol).
> 
> As per the description I would like understand if my below query
> response is defined or not.
> 
> If my request is not valid, please suggest how we can break it into
> multiple valid edit-configs?
> 
> 
> <nc:rpc
> xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"
> nc:message-id="FJ0883">
> 
>   <nc:edit-config>
>     <nc:target>
>       <nc:running/> </nc:target>
>     <nc:config>
>       <org-openroadm-device xmlns="http://org/openroadm/device">
>         <interface>
>           <name>odu-1-11-42/1.1.1</name>
>           <type
> xmlns:openROADM-if="http://org/openroadm/interfaces">openROADM-if:otnOdu</type>
> 
>           <administrative-state>outOfService</administrative-state>
>           <odu xmlns="http://org/openroadm/otn-odu-interfaces"/>
> </interface>
>         <interface>
>           <name>odu-1-11-2/1</name>
>           <type
> xmlns:openROADM-if="http://org/openroadm/interfaces">openROADM-if:otnOdu</type>
> 
>           <administrative-state>outOfService</administrative-state>
>           <odu xmlns="http://org/openroadm/otn-odu-interfaces"/>
> </interface>
>         <interface>
>           <name>eth-1-11-2/1</name>
>           <type
> xmlns:openROADM-if="http://org/openroadm/interfaces">openROADM-if:ethernetCsmacd</type>
> 
>           <administrative-state>outOfService</administrative-state>
>         </interface>
>         <interface nc:operation="delete">
>           <name>odu-1-11-42/1.1.1</name>
>           <type
> xmlns:openROADM-if="http://org/openroadm/interfaces">openROADM-if:otnOdu</type>
> 
>         </interface>
>         <interface nc:operation="delete">
>           <name>odu-1-11-2/1</name>
>           <type
> xmlns:openROADM-if="http://org/openroadm/interfaces">openROADM-if:otnOdu</type>
> 
>         </interface>
>         <interface nc:operation="delete">
>           <name>eth-1-11-2/1</name>
>           <type
> xmlns:openROADM-if="http://org/openroadm/interfaces">openROADM-if:ethernetCsmacd</type>
> 
>         </interface>
>         <odu-connection nc:operation="delete">
>           <connection-name>odu-1-11-42_1.1.1_odu-1-11-2_1</connection-name>
>         </odu-connection>
>       </org-openroadm-device>
>     </nc:config>
>   </nc:edit-config>
> </nc:rpc>
> 
> 
> Thanks,
> 
> Aruna.