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

Re: Error-option in copy-config



Cridlig Vincent wrote:
I ask that because we have a "MIB module"-based approach and modules sometimes reply with error during copy-config.
So, for us, it is exactly the same situation as edit-config.

I have an "application parameter set" approach this is probably
very similar.  IMO, you can pick values for the error-option
and test-option, etc. outside the standard (any way you want).

Your MIB module probably defines the conceptual boundary for continue-on-error
semantics.  I use the parameter set as the boundary, and an application
can have an arbitrary number of data types, parameter sets, RPCs, and notifications.
An application is something like netconfd, security, routing, interfaces, etc.
A parameter set could represent a sub-system within the application, or
simply a grouping based on functionality (just like MIBs).  If any
errors occur within a particular parameter set in a PDU, then
that set is not applied (continue-on-error), and processing skips
to the next parameter set.  Errors get recorded along the way.
For other error-option enums, the boundary does not matter.
First error during apply phase causes an early exit (stop-on-error)
or a recover-and-exit (rollback-on-error).

I use a multi-pass agent architecture, so any PDU is fully validated
before any destructive phase is started.  The continue-on-error
option only matters when a parameter set 'apply' phase operation
fails (no resources usually).  Otherwise there is nothing to back out.
Continue-on-error will allow the manager to force sections that
validated okay to be applied, while skipping the sections that didn't.
(Reminder: continue-on-error *never* means "apply these parameters
even if they are invalid".)  The 'validate' phase attempts to parse
through the entire PDU and collect as many rpc-errors as it can.




Can you give us an advice to deal with such a case ?

Regards
Vincent

Andy



Andy Bierman a écrit :
Vincent Cridlig wrote:
Hi,

Why is there no error-option in the copy-config operation ?
What should we do if an error occurs ? rollback everything, continue or just stop ?
I think this information is not mentionned in the draft.

I don't know, but the <rpc-error> element(s) you return the copy-config
reply should reflect what actually happened.  It's not clear to me
that copy-config should have as many bells and whistles as edit-config.



Thanks,
Vincent

Andy

--
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/>


--
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/>




--
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/>