![]() |
yumapro
25.10-1
YumaPro SDK
|
Settings to control YANG warnings. More...

Functions | |
| void | ncx_set_warn_idlen (uint32 warnlen) |
| Set the warning length for identifiers. More... | |
| uint32 | ncx_get_warn_idlen (void) |
| Get the warning length for identifiers. More... | |
| void | ncx_set_warn_linelen (uint32 warnlen) |
| Set the warning length for YANG file lines. More... | |
| uint32 | ncx_get_warn_linelen (void) |
| Get the warning length for YANG file lines. More... | |
| void | ncx_check_warn_idlen (tk_chain_t *tkc, ncx_module_t *mod, const xmlChar *id) |
| Check if the identifier length is greater than the specified amount. More... | |
| void | ncx_check_warn_linelen (tk_chain_t *tkc, ncx_module_t *mod, const xmlChar *line) |
| Check if the line display length is greater than the specified amount. More... | |
| status_t | ncx_turn_off_warning (status_t res) |
| Add a warning suppression entry. More... | |
| status_t | ncx_turn_on_warning (status_t res) |
| Remove a warning suppression entry if it exists. More... | |
| status_t | ncx_turn_up_warning (status_t res) |
| Add a warning elevation entry. More... | |
| void | ncx_set_warn_error (boolean val) |
| Set the warn_error flag. More... | |
| void | ncx_set_warn_off_yang (boolean val) |
| Set the warn_off_yang flag. More... | |
| boolean | ncx_get_warn_off_yang (void) |
| Get the warn_off_yang flag. More... | |
| boolean | ncx_warning_enabled (status_t res) |
| Check if a specific status_t code is enabled. More... | |
| boolean | ncx_warning_elevated (status_t res) |
| Check if a specific status_t code is elevated. More... | |
| void | ncx_delete_all_obsolete_objects (void) |
| Go through all the modules and delete the obsolete nodes. More... | |
| void | ncx_set_top_mandatory_allowed (boolean allowed) |
| Allow or disallow modules with top-level mandatory object to be loaded; used by the server when agt_running_error is TRUE. More... | |
| boolean | ncx_get_top_mandatory_allowed (void) |
| Check if top-level mandatory objects are allowed or not. More... | |
| boolean | ncx_collapse_submodules_ok (void) |
| Check if it is OK to collapse submodule definitions into the main module. More... | |
| void | ncx_set_module_setid (uint32 new_setid) |
| Update YANG-LIBRARY module set ID. More... | |
| uint32 | ncx_get_module_setid (void) |
| GET YANG-LIBRARY module set ID. More... | |
| status_t | ncx_sprintf_module_setid (uint32 id, xmlChar *buff, int32 buffsize) |
| Write the module set ID for the yang-library to the specified buffer. More... | |
| boolean | ncx_get_empty_npcon_presence (void) |
| Get the empty_npcon_presence value. More... | |
| void | ncx_set_empty_npcon_presence (boolean val) |
| Set the empty_npcon_presence value. More... | |
| boolean | ncx_get_empty_npcon_presence_ro (void) |
| Get the empty_npcon_presence value READ-ONLY check. More... | |
| void | ncx_set_empty_npcon_presence_ro (boolean val) |
| Set the empty_npcon_presence value READ-ONLY check. More... | |
Settings to control YANG warnings.
Compiler warnings can be raised to errors and also turned off completely.
| void ncx_check_warn_idlen | ( | tk_chain_t * | tkc, |
| ncx_module_t * | mod, | ||
| const xmlChar * | id | ||
| ) |
Check if the identifier length is greater than the specified amount.
| tkc | token chain to use (for warning message only) |
| mod | module (for warning message only) |
| id | identifier string to check; must be Z terminated |


| void ncx_check_warn_linelen | ( | tk_chain_t * | tkc, |
| ncx_module_t * | mod, | ||
| const xmlChar * | line | ||
| ) |
Check if the line display length is greater than the specified amount.
| tkc | token chain to use |
| mod | module (used in warning message only |
| line | line to check |


| boolean ncx_collapse_submodules_ok | ( | void | ) |
Check if it is OK to collapse submodule definitions into the main module.
Used by the server to make data access more efficient
| void ncx_delete_all_obsolete_objects | ( | void | ) |
Go through all the modules and delete the obsolete nodes.
This is not a setting. Used by the server to scrub unused objects when the server starts up


| boolean ncx_get_empty_npcon_presence | ( | void | ) |
Get the empty_npcon_presence value.

| boolean ncx_get_empty_npcon_presence_ro | ( | void | ) |
Get the empty_npcon_presence value READ-ONLY check.
Set the empty_npcon_presence value exception for RO child nodes

| uint32 ncx_get_module_setid | ( | void | ) |
GET YANG-LIBRARY module set ID.

| boolean ncx_get_top_mandatory_allowed | ( | void | ) |
Check if top-level mandatory objects are allowed or not.
| uint32 ncx_get_warn_idlen | ( | void | ) |
Get the warning length for identifiers.
| uint32 ncx_get_warn_linelen | ( | void | ) |
Get the warning length for YANG file lines.
| boolean ncx_get_warn_off_yang | ( | void | ) |
Get the warn_off_yang flag.

| void ncx_set_empty_npcon_presence | ( | boolean | val | ) |
Set the empty_npcon_presence value.
| val | TRUE if Empty NP containers should be created; FALSE if should not |

| void ncx_set_empty_npcon_presence_ro | ( | boolean | val | ) |
Set the empty_npcon_presence value READ-ONLY check.
This value SHOULD be set to true. Default is FALSE for backward compatibility with older releases
| val | TRUE if Empty NP containers if no defaults but there are direct read-only child nodes FALSE if should not |

| void ncx_set_module_setid | ( | uint32 | new_setid | ) |
Update YANG-LIBRARY module set ID.
| new_setid | module-set-id calue to keep |
| void ncx_set_top_mandatory_allowed | ( | boolean | allowed | ) |
Allow or disallow modules with top-level mandatory object to be loaded; used by the server when agt_running_error is TRUE.
There are msome OpenConfig and other modules that have mandatory leafs nested within NP-containers, which creates a top-level mandatory object. The server parameters –startup-error=continue and –running-error=continue are usually used for such modules
An invalid configuration needs to be fixed by an operator before an edit-config or commit to running will be accepted
| allowed | value to set T: to allow; F: to disallow |

| void ncx_set_warn_error | ( | boolean | val | ) |
Set the warn_error flag.
| val | value to set |

| void ncx_set_warn_idlen | ( | uint32 | warnlen | ) |
Set the warning length for identifiers.
| warnlen | warning length to use |

| void ncx_set_warn_linelen | ( | uint32 | warnlen | ) |
Set the warning length for YANG file lines.
| warnlen | warning length to use |

| void ncx_set_warn_off_yang | ( | boolean | val | ) |
Set the warn_off_yang flag.
| val | value to set |

| status_t ncx_sprintf_module_setid | ( | uint32 | id, |
| xmlChar * | buff, | ||
| int32 | buffsize | ||
| ) |
Write the module set ID for the yang-library to the specified buffer.
| id | module set id to use | |
| [out] | buff | buffer to use
|
| buffsize | buffer size to use |


Add a warning suppression entry.
| res | internal status code to suppress |

Remove a warning suppression entry if it exists.
| res | internal status code to enable |


Add a warning elevation entry.
| res | internal status code to suppress |

| boolean ncx_warning_elevated | ( | status_t | res | ) |
Check if a specific status_t code is elevated.
| res | internal status code to check |


| boolean ncx_warning_enabled | ( | status_t | res | ) |
Check if a specific status_t code is enabled.
| res | internal status code to check |

