yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
YANG Module Utilities

Actions and configuration setting utilities for the ncx_module_t data structure. More...

Collaboration diagram for YANG Module Utilities:

Functions

void ncx_delete_mod_obsolete_objects (ncx_module_t *mod)
 Delete all obsolete objects in mod. More...
 
void ncx_remove_augment_data_nodes (ncx_module_t *mod)
 Check if YANG objects related to this augment need to be removed. More...
 
void ncx_collapse_submod_defs (ncx_module_t *mod)
 Collapse submodule definitions into the main module. More...
 
status_t ncx_set_obj_xpath_backptrs (ncx_module_t *mod)
 Add Xpath back pointers to the data-db objects in the database for 1 module. More...
 
void ncx_clear_mod_xpath_backptrs (ncx_module_t *mod)
 Clear Xpath back pointers for the data-db objects in the database for 1 module. More...
 
void ncx_unload_and_free_module (ncx_module_t *mod)
 Clear out the xmlns, def_ref, and modQ entries for a module and then delete the module. More...
 
void ncx_soft_unload_and_free_module (ncx_module_t *mod)
 Clear out the modQ entries for a module and then delete the module. More...
 

Detailed Description

Actions and configuration setting utilities for the ncx_module_t data structure.

Specialized compiler-only functions.

Function Documentation

◆ ncx_clear_mod_xpath_backptrs()

void ncx_clear_mod_xpath_backptrs ( ncx_module_t mod)

Clear Xpath back pointers for the data-db objects in the database for 1 module.

Parameters
modmodule to clear backptrs for
Here is the call graph for this function:

◆ ncx_collapse_submod_defs()

void ncx_collapse_submod_defs ( ncx_module_t mod)

Collapse submodule definitions into the main module.

Go through one module and move all the definitions from the sub-module queues to the main module queue. This is only done in the yangcli/netconfd programs to make searches faster and support sub-modules correctly; many functions do not check the sub-modules and will ignore definitions in those sub-modules.

This must only be done after all modules are loaded and the module mod_done flag is being set to TRUE. Should only be called by yang_parse/parse_yang_module

Parameters
modmodule to check
See also
ncx_collapse_submodules_ok
Here is the call graph for this function:

◆ ncx_delete_mod_obsolete_objects()

void ncx_delete_mod_obsolete_objects ( ncx_module_t mod)

Delete all obsolete objects in mod.

Go through one module and delete the obsolete nodes Used by the server when a module is dynamically added with the <load> operation

Parameters
modmodule to check
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ncx_remove_augment_data_nodes()

void ncx_remove_augment_data_nodes ( ncx_module_t mod)

Check if YANG objects related to this augment need to be removed.

Check if the module has any augment datastore definitions into a sub-tree within another module. These augmented object nodes need to be removed when the module is unloaded

Parameters
modmodule to check
Here is the call graph for this function:

◆ ncx_set_obj_xpath_backptrs()

status_t ncx_set_obj_xpath_backptrs ( ncx_module_t mod)

Add Xpath back pointers to the data-db objects in the database for 1 module.

Parameters
modmodule to add backptrs for
Returns
status
See also
ncx_use_xpath_backptrs
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ncx_soft_unload_and_free_module()

void ncx_soft_unload_and_free_module ( ncx_module_t mod)

Clear out the modQ entries for a module and then delete the module.

Parameters
modmodule to clear backptrs for
Here is the call graph for this function:

◆ ncx_unload_and_free_module()

void ncx_unload_and_free_module ( ncx_module_t mod)

Clear out the xmlns, def_ref, and modQ entries for a module and then delete the module.

Parameters
modmodule to clear backptrs for
Here is the call graph for this function: