yumapro
24.10-3
YumaPro SDK
|
NETCONF Server database callback handler. More...
#include "agt.h"
#include "agt_cfg.h"
#include "cfg.h"
#include "ncxtypes.h.h"
#include "op.h"
#include "rpc.h"
#include "ses.h"
#include "status.h"
#include "val.h"
#include "xml_msg.h"
#include "yang_patch.h"
Go to the source code of this file.
Functions | |
status_t | agt_val_rpc_xpath_check (ses_cb_t *scb, rpc_msg_t *rpcmsg, xml_msg_hdr_t *msg, val_value_t *rpcinput, obj_template_t *rpcroot) |
Check for any nodes which are present but have false when-stmts associated with the node. More... | |
status_t | agt_val_action_xpath_check (ses_cb_t *scb, rpc_msg_t *rpcmsg, xml_msg_hdr_t *msg, val_value_t *rpcinput, obj_template_t *rpcroot, val_value_t *action_val) |
Check for any nodes which are present but have false when-stmts associated with the node. More... | |
status_t | agt_val_instance_check (ses_cb_t *scb, xml_msg_hdr_t *msg, val_value_t *valset, val_value_t *valroot, ncx_layer_t layer) |
Check for the proper number of object instances for the specified value struct. More... | |
status_t | agt_val_root_check (ses_cb_t *scb, xml_msg_hdr_t *msghdr, agt_cfg_transaction_t *txcb, val_value_t *root) |
Perform a YANG validation root-check. More... | |
status_t | agt_val_validate_write (ses_cb_t *scb, rpc_msg_t *msg, cfg_template_t *target, val_value_t *valroot, op_editop_t editop, boolean with_sil_callbacks) |
Validate the requested <edit-config> write operation. More... | |
status_t | agt_val_apply_write (ses_cb_t *scb, rpc_msg_t *msg, cfg_template_t *target, val_value_t *pducfg, op_editop_t editop) |
Apply the requested write operation. More... | |
status_t | agt_val_apply_commit (ses_cb_t *scb, rpc_msg_t *msg, cfg_template_t *source, cfg_template_t *target, boolean save_nvstore, boolean save_backup, const xmlChar *backup_source, boolean *save_backup_done, boolean *rootcheck_done, status_t *rootcheck_res) |
Apply the requested commit operation. More... | |
status_t | agt_val_check_commit_edits (ses_cb_t *scb, rpc_msg_t *msg, cfg_template_t *source, cfg_template_t *target) |
Check if the requested commit operation would cause any ACM or partial lock violations in the running config. More... | |
status_t | agt_val_delete_dead_nodes (ses_cb_t *scb, rpc_msg_t *msg, val_value_t *root) |
Mark nodes deleted for each false when-stmt from <validate> More... | |
status_t | agt_val_start_delete_dead_nodes (ses_cb_t *scb, rpc_msg_t *msg, val_value_t *root) |
Mark nodes deleted for each false when-stmt from <validate> More... | |
void | agt_val_finish_delete_dead_nodes (rpc_msg_t *msg) |
Finish deleting dead nodes. More... | |
void | agt_val_add_module_commit_tests (ncx_module_t *mod, boolean set_augment) |
Invoke module commit tests. More... | |
void | agt_val_init_commit_tests (void) |
Initialize commit tests. More... | |
void | agt_val_clean_cached_results (void) |
Clean cached results. More... | |
boolean | agt_val_edit_was_deleted (agt_cfg_transaction_t *txcb, agt_cfg_undo_rec_t *undo, val_value_t *newnode, val_value_t *curnode, boolean find_real_edit) |
Check if the edit in progress was deleted by delete_dead_nodes. More... | |
status_t | agt_val_commit_delete_allowed (ses_cb_t *scb, rpc_msg_t *msg, val_value_t *deleteval, boolean isfirst) |
Check if the current session is allowed to delete the node found in the requested commit delete operation. More... | |
status_t | agt_val_setup_remove_node (rpc_msg_t *msg, val_value_t *curnode, val_value_t *newnode_parent, boolean for_extra_delete, boolean for_commit_deletes, agt_cfg_undo_rec_t **ret_undo, agt_cfg_undo_rec_t **ret_parent_undo) |
Setup an edit node for a node that needs to be removed because the module is being unloaded. More... | |
status_t | agt_val_add_edit (ses_cb_t *scb, rpc_msg_t *msg, agt_cfg_transaction_t *txcb, const xmlChar *defpath, val_value_t *edit_value, op_editop_t editop) |
Create new edit based on edit_value. More... | |
status_t | agt_val_add_edit_ex (ses_cb_t *scb, rpc_msg_t *msg, agt_cfg_transaction_t *txcb, const xmlChar *defpath, val_value_t *edit_value, const xmlChar *edit_operation, const xmlChar *insert_where, const xmlChar *insert_point) |
Create a new edit based on edit_value. More... | |
status_t | agt_val_add_edit_insert (ses_cb_t *scb, rpc_msg_t *msg, agt_cfg_transaction_t *txcb, const xmlChar *defpath, val_value_t *edit_value, yang_patch_op_t patch_op, const xmlChar *insert_where, const xmlChar *insert_point) |
Add Edit Insert function. More... | |
status_t | agt_val_add_edit_max (ses_cb_t *scb, rpc_msg_t *msg, agt_cfg_transaction_t *txcb, const xmlChar *defpath, val_value_t *edit_value, const xmlChar *edit_operation, const xmlChar *insert_where, const xmlChar *insert_point, boolean skip_cb) |
Create a new edit based on edit_value. More... | |
val_value_t * | agt_val_get_data (ncx_cfg_t cfg_id, const xmlChar *defpath, status_t *retres) |
Invoke get data callback. More... | |
boolean | agt_val_check_in_reverse_delete (val_value_t *useval, agt_cfg_undo_rec_t *undo) |
Check if currently in reverse deletes. More... | |
status_t | agt_val_delete_def_dead_nodes (ses_cb_t *scb, xml_msg_hdr_t *msghdr, val_value_t *startval, val_value_t *curval, val_value_t *root) |
Delete all the default nodes that have false when-stmt exprs. More... | |
status_t | agt_val_check_validate_complete (ses_cb_t *scb, rpc_msg_t *msg, val_value_t *source_root, cfg_template_t *target) |
Check if the validate complete callbacks need to be invoked. More... | |
NETCONF Server database callback handler.