119 const xmlChar *cfgparm);
182 boolean do_config_change,
222extern const xmlChar *
307 boolean write_backup,
308 boolean save_nvstore,
310 xmlChar **backup_source,
312 boolean *rootcheck_done,
390 uint32 confirm_timeout,
391 const xmlChar *persist,
392 const xmlChar *persist_id);
418 const xmlChar *comment_str,
420 uint32 confirm_timeout,
421 const xmlChar *persist,
422 const xmlChar *persist_id,
425 boolean *save_startup);
@ brief NCX configuration database manager
agt_ccparm_t
confirmed-commit parms
Definition: agt.h:780
status_t agt_ncx_do_lock_validate(cfg_template_t *cfg)
lock : validate params common callback
Definition: agt_ncx.c:7213
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.
Definition: agt_ncx.c:5633
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
Definition: agt_ncx.c:6618
void agt_ncx_clear_cc_ses_id(void)
Clear the confirmed commit session ID.
Definition: agt_ncx.c:6008
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.
Definition: agt_ncx.c:5831
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.
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...
Definition: agt_ncx.c:5715
void agt_ncx_check_restconf_cc_timeout(void)
Check if a confirmed-commit has timed out, and needs to be canceled.
Definition: agt_ncx.c:6080
status_t agt_ncx_write_config(const xmlChar *filespec, cfg_template_t *cfg)
Write the specified cfg->root to the the default backup source.
Definition: agt_ncx.c:6557
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.
Definition: agt_ncx.c:6129
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.
Definition: agt_ncx.c:5943
const xmlChar * agt_ncx_cc_persist_id(void)
Get the confirmed commit persist ID.
Definition: agt_ncx.c:6025
ses_id_t agt_ncx_cc_ses_id(void)
Get the confirmed commit session ID.
Definition: agt_ncx.c:5991
void agt_ncx_check_cc_timeout(void)
Check if a confirmed-commit has timed out, and needs to be canceled.
Definition: agt_ncx.c:6040
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.
Definition: agt_ncx.c:6163
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.
Definition: agt_ncx.c:6358
status_t agt_ncx_init(void)
Initialize the NETCONF Server standard method routines.
Definition: agt_ncx.c:5570
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
Definition: agt_ncx.c:6713
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.
Definition: agt_ncx.c:6589
void agt_ncx_cleanup(void)
Cleanup the NETCONF Server standard method routines.
Definition: agt_ncx.c:5601
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
Definition: agt_ncx.c:7162
boolean agt_ncx_cc_active(void)
Check if a confirmed-commit is active, and the timeout may need to be processed.
Definition: agt_ncx.c:5974
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
Definition: agt_ncx.c:6866
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 s...
Definition: agt_ncx.c:6790
cfg_location_t
classify the config location
Definition: cfg.h:221
status_t
global error return code
Definition: status_enum.h:210
uint32 ses_id_t
Session ID.
Definition: ses.h:335
ncx_confirm_event_t
type of confirmEvent in the sysConfirmedCommit notification Used in confirmed-commit standard as well
Definition: ncxtypes.h:1515
uint64 ncx_transaction_id_t
transaction is scoped to single session write operation on a config
Definition: ncxtypes.h:728
YANG module data structures Many internal representations of YANG module constructs.
NETCONF Session Common definitions module.
Global error messages for status code enumerations.
struct representing 1 configuration database
Definition: cfg.h:229
representation of one module or submodule during and after parsing
Definition: ncxtypes.h:1138
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:185
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:912
gather node data into a simple struct.
Definition: xml_util.h:207
Value Node Basic Support.