yumapro  23.10T-6
YumaPro SDK
Loading...
Searching...
No Matches
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

◆ agt_state_add_backup_file()

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:

◆ agt_state_add_module_schema()

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:

◆ agt_state_add_netconf_schema()

status_t agt_state_add_netconf_schema ( void  )

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

Returns
status
Here is the call graph for this function:

◆ agt_state_add_session()

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:

◆ agt_state_cleanup()

void agt_state_cleanup ( void  )

Cleanup the module data structures.

Called by the server during shutdown.

Here is the call graph for this function:

◆ agt_state_delete_backup_file()

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:

◆ agt_state_get_capabilities()

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!)

◆ agt_state_get_datastores()

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!)

◆ agt_state_get_sessions()

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!)

◆ agt_state_get_statistics()

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

◆ agt_state_init()

status_t agt_state_init ( void  )

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:

◆ agt_state_init2()

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
Here is the call graph for this function:

◆ agt_state_refresh_backup_dir()

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
Here is the call graph for this function:

◆ agt_state_remove_module_schema()

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:

◆ agt_state_remove_session()

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: