yumapro
24.10-3
YumaPro SDK
|
Process some YANG validation statements, such as unique-stmt. More...
Typedefs | |
typedef void(* | record_unique_error_t) (ses_cb_t *scb, xml_msg_hdr_t *msghdr, val_value_t *errval, dlq_hdr_t *valuniqueQ) |
Callback function to generate an rpc_err_rec_t and save it in the msg Use the provided error info record for <rpc-error> fields. More... | |
Functions | |
status_t | val_unique_stmt_check (ses_cb_t *scb, xml_msg_hdr_t *msg, obj_template_t *obj, val_value_t *parent, val_value_t *firstval, val_value_t *root, record_unique_error_t error_fn) |
Check for the proper uniqueness of the tuples within the set of list instances for the specified node. More... | |
Process some YANG validation statements, such as unique-stmt.
The YANG validation is done mostly in the server but some processing such as must, when, and unique are done in the NCX library.
typedef void(* record_unique_error_t) (ses_cb_t *scb, xml_msg_hdr_t *msghdr, val_value_t *errval, dlq_hdr_t *valuniqueQ) |
Callback function to generate an rpc_err_rec_t and save it in the msg Use the provided error info record for <rpc-error> fields.
For YANG 'data-not-unique' error-app-tag
scb | session control block
|
msghdr | XML msg header with error Q
|
errval | list value node that contains the unique-stmt |
valuniqueQ | Q of val_unique_t structs for error-info |
status_t val_unique_stmt_check | ( | ses_cb_t * | scb, |
xml_msg_hdr_t * | msg, | ||
obj_template_t * | obj, | ||
val_value_t * | parent, | ||
val_value_t * | firstval, | ||
val_value_t * | root, | ||
record_unique_error_t | error_fn | ||
) |
Check for the proper uniqueness of the tuples within the set of list instances for the specified node.
scb | session control block (may be NULL; no session stats) |
msg | xml_msg_hdr t from msg in progress
|
obj | child object of 'parent' that needs the unique test |
parent | parent node to search for 'obj' instances |
firstval | first instance of 'obj' |
root | XPath docroot to use |
error_fn | error handler callback for agt; NULL if not used |