yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
YANG Parser Support

XML and CBOR Parser Utilities. More...

Collaboration diagram for YANG Parser Support:

Modules

 Parser Utilities
 YANG Parser Control Block and General Access Functions.
 

Functions

boolean parse_util_check_prune_data (xml_msg_hdr_t *msg, val_value_t *val, status_t res)
 Check if the node should be pruned; it has already been deleted. More...
 
status_t yang_parse_from_filespec (const xmlChar *filespec, yang_pcb_t *pcb, yang_parsetype_t ptyp, boolean isyang)
 Parse a file as a YANG module. More...
 

Detailed Description

XML and CBOR Parser Utilities.

YANG Language Parser Entry Function.

YANG Language Parser.

Function Documentation

◆ parse_util_check_prune_data()

boolean parse_util_check_prune_data ( xml_msg_hdr_t msg,
val_value_t val,
status_t  res 
)

Check if the node should be pruned; it has already been deleted.

Parameters
msgmessage header with prune_bad_data maybe set
valvalue causing error (for warning only)
reserror status (for warning message only)
Returns
TRUE if prune bad data should be done
Here is the call graph for this function:

◆ yang_parse_from_filespec()

status_t yang_parse_from_filespec ( const xmlChar *  filespec,
yang_pcb_t pcb,
yang_parsetype_t  ptyp,
boolean  isyang 
)

Parse a file as a YANG module.

Error messages are printed by this function!!

On successful return: An ncx_module is filled out and validated as the file is parsed. If no errors:

      TOP, IMPORT:
         the module is loaded into the definition registry with
         the ncx_add_to_registry function
      INCLUDE:
         the submodule is loaded into the top-level module,
         specified in the pcb
Parameters
filespecabsolute path or relative path
This string is used as-is without adjustment.
pcbparser control block used as very top-level struct
ptypparser call type
         YANG_PT_TOP == called from top-level file
         YANG_PT_INCLUDE == called from an include-stmt in a file
         YANG_PT_IMPORT == called from an import-stmt in a file
isyangTRUE if a YANG file is expected
FALSE if a YIN file is expected
Returns
status of the operation
Here is the call graph for this function: