Use YANG object metadata to generate help text for CLI.
More...
|
| void | help_program_module (const xmlChar *modname, const xmlChar *cliname, help_mode_t mode) |
| | Print the full help text for an entire program module to STDOUT. More...
|
| |
| void | help_data_module (const ncx_module_t *mod, help_mode_t mode) |
| | Print the full help text for an entire data module to STDOUT. More...
|
| |
| void | help_type (const typ_template_t *typ, help_mode_t mode) |
| | Print the full help text for a YANG data type to STDOUT. More...
|
| |
| void | help_object (obj_template_t *obj, help_mode_t mode) |
| | Print the full help text for an object template to STDOUT. More...
|
| |
| help_mode_t | help_cvt_str (const xmlChar *str) |
| | Convert a string to a help_mode_t enum. More...
|
| |
| const xmlChar * | help_cvt_enum (help_mode_t mode) |
| | Convert a help_mode_t enum to a string. More...
|
| |
| void | obj_dump_template (obj_template_t *obj, help_mode_t mode, uint32 nestlevel, uint32 indent) |
| | Dump the contents of an obj_template_t struct for help text. More...
|
| |
| void | obj_dump_template_ex (obj_template_t *obj, help_mode_t mode, uint32 nestlevel, uint32 indent, boolean with_desc) |
| | Dump the contents of an obj_template_t struct for help text. More...
|
| |
| void | obj_dump_datadefQ (dlq_hdr_t *datadefQ, help_mode_t mode, uint32 nestlevel, uint32 indent) |
| | Dump the contents of a datadefQ for debugging. More...
|
| |
| status_t | obj_dump_template_buff (obj_template_t *obj, xmlChar *buff, uint32 bufflen) |
| | Dump the contents of an obj_template_t struct for help text Send text to a buffer instead of a screen. More...
|
| |
| const xmlChar * | obj_help_description (const obj_template_t *obj) |
| | Get the preferred help description for an object. More...
|
| |
Use YANG object metadata to generate help text for CLI.
◆ help_mode_t
modes to match the keywords brief, normal, full
| Enumerator |
|---|
| HELP_MODE_NONE | value not set
|
| HELP_MODE_BRIEF | –brief mode selected
|
| HELP_MODE_NORMAL | –normal mode selected or default
|
| HELP_MODE_FULL | –full selected
|
◆ help_cvt_enum()
Convert a help_mode_t enum to a string.
- Parameters
-
| mode | enum value to convert |
- Returns
- string value
◆ help_cvt_str()
Convert a string to a help_mode_t enum.
- Parameters
-
- Returns
- enum value
◆ help_data_module()
Print the full help text for an entire data module to STDOUT.
This API is for regular YANG modules
- Parameters
-
| mod | data module struct |
| mode | help mode requested |
◆ help_object()
Print the full help text for an object template to STDOUT.
- Parameters
-
| obj | object template to report |
| mode | help mode requested |
◆ help_program_module()
| void help_program_module |
( |
const xmlChar * |
modname, |
|
|
const xmlChar * |
cliname, |
|
|
help_mode_t |
mode |
|
) |
| |
Print the full help text for an entire program module to STDOUT.
This API is for special YANG modules like netconfd-pro.yang used only for CLI parameters
- Parameters
-
| modname | module name without file suffix |
| cliname | name of CLI parmset within the modname module |
| mode | help mode requested |
◆ help_type()
Print the full help text for a YANG data type to STDOUT.
- Parameters
-
| typ | type template struct to report |
| mode | help mode requested |
◆ obj_dump_datadefQ()
| void obj_dump_datadefQ |
( |
dlq_hdr_t * |
datadefQ, |
|
|
help_mode_t |
mode, |
|
|
uint32 |
nestlevel, |
|
|
uint32 |
indent |
|
) |
| |
Dump the contents of a datadefQ for debugging.
- Parameters
-
| datadefQ | Q of obj_template to dump |
| mode | requested help mode |
| nestlevel | number of levels from the top-level that should be printed; 0 == all levels |
| indent | start indent count |
◆ obj_dump_template()
Dump the contents of an obj_template_t struct for help text.
- Parameters
-
| obj | obj_template to dump help for |
| mode | requested help mode |
| nestlevel | number of levels from the top-level that should be printed; 0 == all levels |
| indent | start indent count |
◆ obj_dump_template_buff()
Dump the contents of an obj_template_t struct for help text Send text to a buffer instead of a screen.
Used by yuma-bench GUI for hover text Does not include object description Does not include banner line that is printed in bold Used for the TipExtra API in the GUI Buffer is formatted with newline at the end of a line instead of the start of the line line like a yumapro line
- Parameters
-
| obj | obj_template to dump help for |
| [out] | buff | buffer to use
- buff filled in with object extra banner text
|
| bufflen | buffer length |
- Returns
- status: ERR_BUFF_OVFL if could not finish writing text
◆ obj_dump_template_ex()
Dump the contents of an obj_template_t struct for help text.
- Parameters
-
| obj | obj_template to dump help for |
| mode | requested help mode |
| nestlevel | number of levels from the top-level that should be printed; 0 == all levels |
| indent | start indent count |
| with_desc | add description |
◆ obj_help_description()
Get the preferred help description for an object.
1) check ncx:help extension added
2) check ncx:info extension added
3) check object description-stmt
- Parameters
-
| obj | obj_template to dump help for |
- Returns
- pointer to description or NULL if none