Re: [Netconf] Questions regarding <edit-config> with default-operation "none"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Netconf] Questions regarding <edit-config> with default-operation "none"
Garke Thilo wrote:
> Hi *
>
> I'm new to NETCONF and have two questions regarding <edit-config> in
> case <default-operation> is set to "none".
>
> 1.) Does any operation given in a parent element apply to all its
> children elements?
>
yes
> 2.) If so, are nested operations valid such that the inner operation
> overrides the outer one?
>
Yes -- the operation changes.
Some combinations do not make sense,
and must be flagged as errors
e.g., create inside delete, delete inside create.
Some combinations may make sense, depending on
your interpretation (the NETCONF RFC is silent
on this entire issue). E.g., merge or replace
inside delete.
> 3.) Would this imply that any operations inside of a merge operation are
> not valid?
no.
Any operation can work inside merge, providing that
the data model requirements are met (for create or delete).
IMO, the server needs to handle an arbitrary mix of nc:operation
attributes. I've heard that some implementations do
not handle nc:operation very well at all (like
allowing just 1 instance of the nc:operation attribute
in the entire <config> element.)
The yang:insert operation complicates matters a bit,
but you may not be implementing YANG, and don't need to
worry about it :-)
>
> Thanks in advance for any helpful reply.
>
> Best regards,
>
> Thilo Garke
Andy
Note: Messages sent to this list are the opinions of the senders and do not imply endorsement by the IETF.