yumapro  21.10T-12
YumaPro SDK
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. More...
 
cfg_location_t cfg_loc
 config location: Enumeration identifying the configuration source location.
 
cfg_state_t cfg_state
 config state: Current internal configuration state. More...
 
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.
 
xmlChar lock_time [TSTAMP_MIN_SIZE]
 Date and time string when the configuration was last locked. More...
 
xmlChar last_ch_time [TSTAMP_MIN_SIZE]
 Date and time string when the configuration was last changed. More...
 
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.
 
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.
 

Detailed Description

struct representing 1 configuration database

Field Documentation

◆ cfg_id

ncx_cfg_t cfg_id

config ID: Internal configuration ID assigned to this configuration.

◆ cfg_state

cfg_state_t cfg_state

config state: Current internal configuration state.

◆ flags

uint32 flags

Internal configuration flags.

Do not use directly.

◆ last_ch_time

xmlChar last_ch_time[TSTAMP_MIN_SIZE]

Date and time string when the configuration was last changed.

◆ lock_time

xmlChar lock_time[TSTAMP_MIN_SIZE]

Date and time string when the configuration was last locked.

◆ 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: