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.