Subject: Re: [Netconf] Question on edit-config statement (section 7.2)

From: Martin Bjorklund <[email-masked]>
Date: Tue, 13 Mar 2018 14:03:41 +0100 (CET)

[Moving to NETCONF, Bcc:ing NETMOD]

"Bogaert, Bart (Nokia - BE/Antwerp)" <[email-masked]> wrote:
> Hi,
> 
> We have a question about the following statement in the edit-config RPC section:
> 
> "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)."
> 
> How do we need to read this?  Does this mean that if there is an
> edit-config in which, say, 10 interfaces are created these 10
> interfaces need to be grouped in the same "section" of the
> edit-config as this:
> <edit-config>
>   ...
>   <interfaces>
>     <interface>
>       <name>one</name>
>       ...
>     </interface>
>    <interface>
>       <name>two</name>
>       ...
>     </interface>
>   </interfaces>
>   ...
> </edit-config>
> 
> And not like this:
> <edit-config>
>   ...
>   <interfaces>
>     <interface>
>       <name>one</name>
>       ...
>     </interface>
>   </interfaces>
>   ...
>   <interfaces>
>     <interface>
>       <name>two</name>
>     </interface>
>   </interfaces>
>   ...
> </edit-config>

Yes, I think so.  Probably most implementations will handle this the
way you expect, if the operation is "merge".  But if it is "replace"
you probably won't get the same result from all implementations.

/martin