yumapro  20.10-10
YumaPro SDK
NETCONF Monitoring

YANG module ietf-netconf-monitoring implementation. More...

Collaboration diagram for NETCONF Monitoring:

Macros

#define AGT_STATE_MODULE   (const xmlChar *)"ietf-netconf-monitoring"
 module name
 

Functions

status_t agt_state_init (void)
 INIT 1: Initialize the server state monitor module data structures. More...
 
status_t agt_state_init2 (void)
 INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loaded. More...
 
void agt_state_cleanup (void)
 Cleanup the module data structures. More...
 
status_t agt_state_add_session (ses_cb_t *scb)
 Add a session entry to the netconf-state DM. More...
 
void agt_state_remove_session (ses_cb_t *scb)
 Remove a session entry from the netconf-state DM. More...
 
status_t agt_state_add_module_schema (ncx_module_t *mod)
 Add a schema entry to the netconf-state DM. More...
 
void agt_state_remove_module_schema (ncx_module_t *mod)
 Remove a schema entry from the netconf-state DM. More...
 
status_t agt_state_add_netconf_schema (void)
 Add a schema entry to the netconf-state DM for ietf-netconf. More...
 
status_t agt_state_add_backup_file (const xmlChar *filename, boolean overwrite)
 Add a backup-file entry to the netconf-state DM for the. More...
 
void agt_state_delete_backup_file (const xmlChar *filename)
 Remove and delete a backup-file entry to the netconf-state DM for the specified file. More...
 
val_value_tagt_state_get_sessions (void)
 Get a const back pointer to current /etconf-state/sessions tree. More...
 
const val_value_tagt_state_get_statistics (void)
 Get a const back pointer to current /netconf-state/statistics tree. More...
 
val_value_tagt_state_get_capabilities (void)
 Get a const back pointer to current /netconf-state/capabilities. More...
 
val_value_tagt_state_get_datastores (void)
 Get a const back pointer to current /netconf-state/datastores. More...
 
status_t agt_state_refresh_backup_dir (ses_cb_t *scb)
 Check the backup directory and re-generate the YANG operational data for the netconf-state/backups container. More...
 

Detailed Description

YANG module ietf-netconf-monitoring implementation.

Fully supported RFC 6022 SIL code.

Function Documentation

status_t agt_state_add_backup_file ( const xmlChar *  filename,
boolean  overwrite 
)

Add a backup-file entry to the netconf-state DM for the.

Parameters
filenamename of the backup file to add.

YPW-1743: Backup-time of files is not updated for backup taken with "overwrite=true"

Parameters
overwriteTRUE if need to overwrite the value
FALSE if do not overwrite
Returns
status

Here is the call graph for this function:

status_t agt_state_add_module_schema ( ncx_module_t mod)

Add a schema entry to the netconf-state DM.

Parameters
modmodule to add
Returns
status

Here is the call graph for this function:

Here is the caller graph for this function:

status_t agt_state_add_netconf_schema ( void  )

Add a schema entry to the netconf-state DM for ietf-netconf.

Returns
status
status

Here is the call graph for this function:

status_t agt_state_add_session ( ses_cb_t scb)

Add a session entry to the netconf-state DM.

Parameters
scbsession control block to use for the info
Returns
status

Here is the call graph for this function:

Here is the caller graph for this function:

void agt_state_cleanup ( void  )

Cleanup the module data structures.

Called by the server during shutdown.

Returns
none

Here is the call graph for this function:

void agt_state_delete_backup_file ( const xmlChar *  filename)

Remove and delete a backup-file entry to the netconf-state DM for the specified file.

Parameters
filenamename of the backup file to delete

Here is the call graph for this function:

val_value_t* agt_state_get_capabilities ( void  )

Get a const back pointer to current /netconf-state/capabilities.

Returns
pointer to the <capabilities> value (use as const!)
const pointer to the <capabilities> value
val_value_t* agt_state_get_datastores ( void  )

Get a const back pointer to current /netconf-state/datastores.

Returns
pointer to the <datastores> value (use as const!)
const pointer to the <datastores> value
val_value_t* agt_state_get_sessions ( void  )

Get a const back pointer to current /etconf-state/sessions tree.

Returns
pointer to the <sessions> value (use as const!)
const pointer to the <sessions> value
const val_value_t* agt_state_get_statistics ( void  )

Get a const back pointer to current /netconf-state/statistics tree.

Returns
const pointer to the <statistics> value
const pointer to the <statistics> value
status_t agt_state_init ( void  )

INIT 1: Initialize the server state monitor module data structures.

Returns
status

INIT 1: Initialize the server state monitor module data structures.

Returns
status

Here is the call graph for this function:

Here is the caller graph for this function:

status_t agt_state_init2 ( void  )

INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loaded.

Returns
status

INIT 2: Initialize the monitoring data structures This must be done after the <running> config is loaded.

This must be done after the <running> config is loaded

Returns
status

Here is the call graph for this function:

status_t agt_state_refresh_backup_dir ( ses_cb_t scb)

Check the backup directory and re-generate the YANG operational data for the netconf-state/backups container.

Parameters
scbsession control block requesting this refresh
Returns
status; NO_ERR if done OK; ERR_NCX_SKIPPED if not enabled

YPW-1811: customer request to add <refresh-backup-dir> operation

Parameters
scbsession control block requesting this refresh
Returns
status; NO_ERR if done OK; ERR_NCX_SKIPPED if not enabled

Here is the call graph for this function:

void agt_state_remove_module_schema ( ncx_module_t mod)

Remove a schema entry from the netconf-state DM.

Parameters
modmodule to remove

Here is the call graph for this function:

void agt_state_remove_session ( ses_cb_t scb)

Remove a session entry from the netconf-state DM.

Parameters
scbsession control block to delete

Here is the call graph for this function:

Here is the caller graph for this function: