public interface DpValpointCallback
void validate(DpTrans trans, ConfObject[] kp, ConfValue newval) throws DpCallbackException, DpCallbackWarningException
DpCallbackException if the validation fails. There is also a
possibility to throw a DpCallbackWarningException with
message set to a string describing the warning. The warnings will get
propagated to the transaction engine, and depending on where the
transaction originates, ConfD/NCS may or may not act on the warnings. If
the transaction originates from the CLI or the Web UI, ConfD/NCS will
interactively present the user with a choice - whereby the transaction
can be aborted.
If the transaction originates from NETCONF - which does not have any interactive capabilities, the warnings are ignored. The warnings are primarily intended to alert inexperienced users that attempt to make - dangerous - configuration changes. There can be multiple warnings from multiple validation points in the same transaction.
trans - The transactionkp - The keypathnewval - The new value to validateDpCallbackException - If the validation failsDPCallbackWarningException - If a warning should be propagated to the originator of the
transaction.DpCallbackWarningExceptionString valpoint()