yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
YANG SID File

Support YANG to CBOR SID File. More...

Collaboration diagram for YANG SID File:

Functions

status_t sid_file_init (void)
 Initialize the SID FIle Parser Module. More...
 
void sid_file_cleanup (void)
 Cleanup the SID FIle Parser Module. More...
 
val_value_tsid_file_load (ncx_module_t *mod, status_t *res)
 
  • Load the SID file for the specified YANG module.
More...
 
status_t sid_file_apply (uint32 sid_tree_id, val_value_t *sidfile, ncx_module_t *mod)
 Apply the SID file contents to specified YANG module. More...
 

Detailed Description

Support YANG to CBOR SID File.

Implement obj_template_t schema to val_value conversion of SID files.

Function Documentation

◆ sid_file_apply()

status_t sid_file_apply ( uint32  sid_tree_id,
val_value_t sidfile,
ncx_module_t mod 
)

Apply the SID file contents to specified YANG module.

For augments, the expanded nodes in the augmented tree will be updated. The sid_dict registry will be updated for each schema item.

Parameters
sid_tree_idYANG SID Tree ID to use (from sid_dict)
sidfilevalue tree representing a SID file to apply. value treated as const.
[out]modmodule to load SID file for
  • mod data structures and maybe other modules for augment will get SID assignments
Returns
status
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sid_file_cleanup()

void sid_file_cleanup ( void  )

Cleanup the SID FIle Parser Module.

Here is the caller graph for this function:

◆ sid_file_init()

status_t sid_file_init ( void  )

Initialize the SID FIle Parser Module.

Returns
status
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sid_file_load()

val_value_t * sid_file_load ( ncx_module_t mod,
status_t res 
)

  • Load the SID file for the specified YANG module.

Just creates a val_value_t representing the JSON contents Does not apply the SIDs to the module

Parameters
modmodule to load SID file for
[out]resaddress of return status
  • *res return status
Returns
malloced val_value_t representing the SID file. Must be freed with val_free_value.
Here is the call graph for this function:
Here is the caller graph for this function: