If “must” condition is not satisfied, a error caused while configuration is not logged in auditLog or developerLog files.
Also, confd_notification event of type CONFD_NOTIF_AUDIT or CONFD_NOTIF_DEVEL about error is not received if configuration fails because of “must” condition failure.
Sample yang:
container a {
list b {
key c;
leaf c {}
leaf d {}
must “some condition” {
error-message “ERROR MESSAGE”;
}
}
}
If configuration of “a” fails because of must condition failure, does confd sends any confd_notification event about this error?
Also if any action command gives error, is there any confd_notification event for this error?
Developer log entries and notifications (with developer log level set to “trace”) will not log the error message but will show that the transaction was aborted in the validation phase.