yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
cfg_template_t Struct Reference

struct representing 1 configuration database More...

#include <cfg.h>

Collaboration diagram for cfg_template_t:

Data Fields

ncx_cfg_t cfg_id
 config ID: Internal configuration ID assigned to this configuration.
 
cfg_location_t cfg_loc
 config location: Enumeration identifying the configuration source location.
 
cfg_state_t cfg_state
 config state: Current internal configuration state.
 
ncx_transaction_id_t last_txid
 last edit transaction ID
 
ncx_transaction_id_t cur_txid
 current edit transaction ID
 
time_t last_modified
 last modified timestamp
 
xmlChar * name
 datastore name string
 
xmlChar * src_url
 source URL: URL for use with 'cfg_loc' to identify the configuration source.
 
time_t lock_itime
 time_t timestamp for max-lock-hold-time enforcement
 
xmlChar lock_time [TSTAMP_MIN_SIZE]
 Date and time string when the configuration was last locked.
 
xmlChar last_ch_time [TSTAMP_MIN_SIZE]
 Date and time string when the configuration was last changed.
 
uint32 flags
 Internal configuration flags. More...
 
ses_id_t locked_by
 Session ID that owns the global configuration lock, if the database is currently locked.
 
boolean locked_by_lockall
 Flag indicating the global lock is from lock-all not lock.
 
dlq_hdr_t load_errQ
 Queue of rpc_err_rec_t structures that represent any <rpc-error> records that were generated when the configuration was loaded, if any.
 
boolean rwlock_initialized
 RWLOCK for this config - used by multiple reader/writer threads according to RWLOCK rules: basically, max one writer, multiple readers, ordered by request time.
 
pthread_rwlock_t rwlock
 PTHREADS=1 only: rwlock data.
 
ses_id_t rw_wrlocked_by
 PTHREADS=1 only: Single write lock holder, if any.
 
ses_id_t rw_rdlocked_by
 Most recent read lock holder only, used for debugging if the background thread locks the cfg for fill_candidate_from_running or other reason then the SID will be zero.
 
boolean rw_wrlocked
 PTHREADS=1 only: TRUE if currently write-locked.
 
boolean rw_rdlocked
 PTHREADS=1 only: TRUE if currently read-locked.
 
boolean wrlock_pending
 TRUE if the wrlock is active and set.
 
val_value_troot
 datastore root value. More...
 
boolean fake_candidate
 TRUE if this is YANG-PATCH request fake candidate template.
 
boolean in_cc_rollback
 YPW-2036: flag to allow rollback transaction to indicate if the transaction is due to a confirmed-commit timeout Only used in agt. More...
 
boolean defer_load
 TRUE if load is deferred due to sil-sa bundles.
 

Detailed Description

struct representing 1 configuration database

Field Documentation

◆ flags

uint32 flags

Internal configuration flags.

Do not use directly.

◆ in_cc_rollback

boolean in_cc_rollback

YPW-2036: flag to allow rollback transaction to indicate if the transaction is due to a confirmed-commit timeout Only used in agt.

Set in agt_ncx_cancel_confirmed_commit

◆ root

val_value_t* root

datastore root value.

btyp == NCX_BT_CONTAINER. The root of the value tree representing the entire database.


The documentation for this struct was generated from the following file: