[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which error-tag?



Andy Bierman <ietf@andybierman.com> wrote:
> Hi,
> 
> If the agent does not support the <candidate> config,
> but a manager sends a <commit> or <discard-changes> anyway,
> which error should be returned? 
> 
> (hint: unknown-element or operation-not-supported)
> 
> Within an agent 'engine', only the RPC methods that have registered
> (within the agent) will be known to the engine.  The operation named 
> 'commit'
> might as well be named 'blahfoobar', from the agent POV.

I agree so far.  In my code, when the RPC method has no registered
handler, I emit the operation-not-supported error-tag.  You will get
operation-not-supported if you use <blahfoobar. and also if you
e.g. use <validate> and the capability is not supported.


/martin

--
to unsubscribe send a message to netconf-request@ops.ietf.org with
the word 'unsubscribe' in a single line as the message text body.
archive: <http://ops.ietf.org/lists/netconf/>