yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
agt_ncx.h File Reference

NETCONF Server standard method routines. More...

#include "cfg.h"
#include "ncxtypes.h"
#include "ses.h"
#include "status.h"
#include "val.h"
Include dependency graph for agt_ncx.h:

Go to the source code of this file.

Functions

status_t agt_ncx_init (void)
 Initialize the NETCONF Server standard method routines. More...
 
void agt_ncx_cleanup (void)
 Cleanup the NETCONF Server standard method routines. More...
 
status_t agt_ncx_cfg_load (cfg_template_t *cfg, cfg_location_t cfgloc, const xmlChar *cfgparm)
 Load the specifed config from the indicated source. More...
 
status_t agt_ncx_cfg_save_ex (ses_cb_t *scb, rpc_msg_t *msg, cfg_template_t *cfg)
 Save the specified cfg to the its startup source, which should be stored in the cfg struct and invoke the startup_hook callbacks. More...
 
status_t agt_ncx_cfg_save (cfg_template_t *cfg)
 Save the specified cfg to the its startup source, which should be stored in the cfg struct. More...
 
status_t agt_ncx_cfg_save_inline (const xmlChar *source_url, val_value_t *newroot)
 Save the specified cfg to the its startup source, which should be stored in the cfg struct. More...
 
status_t agt_ncx_load_backup (const xmlChar *filespec, cfg_template_t *cfg, ses_id_t use_sid, dlq_hdr_t *errQ, boolean do_config_change, const rpc_msg_t *reqmsg)
 Load a backup config into the specified config template. More...
 
boolean agt_ncx_cc_active (void)
 Check if a confirmed-commit is active, and the timeout may need to be processed. More...
 
ses_id_t agt_ncx_cc_ses_id (void)
 Get the confirmed commit session ID. More...
 
void agt_ncx_clear_cc_ses_id (void)
 Clear the confirmed commit session ID. More...
 
const xmlChar * agt_ncx_cc_persist_id (void)
 Get the confirmed commit persist ID. More...
 
void agt_ncx_check_cc_timeout (void)
 Check if a confirmed-commit has timed out, and needs to be canceled. More...
 
void agt_ncx_check_restconf_cc_timeout (void)
 Check if a confirmed-commit has timed out, and needs to be canceled. More...
 
status_t agt_ncx_cancel_confirmed_commit (ses_cb_t *scb, ncx_confirm_event_t event)
 Cancel the confirmed-commit in progress and rollback to the backup-cfg.xml file. More...
 
status_t agt_ncx_cancel_confirmed_commit_withmsg (ses_cb_t *scb, rpc_msg_t *msg, xml_node_t *methnode, ncx_confirm_event_t event)
 Cancel the confirmed-commit in progress and rollback to the backup-cfg.xml file. More...
 
status_t agt_ncx_internal_commit (ses_cb_t *scb, rpc_msg_t *msg, boolean write_backup, boolean save_nvstore, ses_id_t rollback_sid, xmlChar **backup_source, boolean *errdone, boolean *rootcheck_done, status_t *rootcheck_res)
 Apply a commit from candidate to running. More...
 
status_t agt_ncx_write_config (const xmlChar *filespec, cfg_template_t *cfg)
 Write the specified cfg->root to the the default backup source. More...
 
status_t agt_ncx_force_write_config (const xmlChar *filespec, cfg_template_t *cfg)
 Write the specified cfg->root to the the default backup source. More...
 
status_t agt_ncx_process_one_loaded_module (ses_cb_t *scb, ncx_module_t *mod)
 process 1 modules just loaded with load or load-bundle More...
 
status_t agt_ncx_final_process_loaded_modules (ses_cb_t *scb, rpc_msg_t *msg, boolean is_booting)
 post-process all modules just loaded with load or load-bundle More...
 
status_t agt_ncx_check_commit_parms (boolean confirmed, uint32 confirm_timeout, const xmlChar *persist, const xmlChar *persist_id)
 Check the commit parameters from a RESTCONF edit to see if they are valid for the current datastore state and server profile. More...
 
status_t agt_ncx_commit_invoke (ses_cb_t *scb, rpc_msg_t *msg, cfg_template_t *running, const xmlChar *comment_str, boolean confirmed, uint32 confirm_timeout, const xmlChar *persist, const xmlChar *persist_id, agt_ccparm_t *ret_ccparm, boolean *errdone, boolean *save_startup)
 commit : invoke commit or confirmed-commit API More...
 
status_t agt_ncx_load_config_ha (ses_cb_t *scb, rpc_msg_t *msg, val_value_t *config_val, ncx_transaction_id_t txid)
 load-config : validate params callback More...
 
status_t agt_ncx_do_lock_validate (cfg_template_t *cfg)
 lock : validate params common callback More...
 

Detailed Description

NETCONF Server standard method routines.