YANG Data Tree Handling

Accessing and creating YANG Data Nodes Internal representation: val_value_t struct

How do I tell which member type in a union matched?
YANG provides the "union" data type which is processed by matching values against each member type.    type union {      type int32;      typ...
Fri, 8 Feb, 2019 at 2:13 PM
How to set a decimal64 number
The internal data type ncx_num_t is used to store numeric types such as decimal64 The file ncx/ncx_num.c contains access functions for ncx_num_t. ...
Mon, 2 Apr, 2018 at 3:50 PM
How do I construct a data tree for a YANG list?
The following examples illustrates how to construct a list data node. The list nodes have several limitations and special handling nuances. The following li...
Thu, 17 May, 2018 at 1:04 PM
How to covert Leafref node to a real value node in RPC SIL
When there is a Leafref node in a RPC input, the server will pass to the SIL code a value of Leafref type, where it's fields in val->v are not set....
Fri, 8 Feb, 2019 at 2:16 PM
How do I construct a data node for a YANG leaf-list?
The following examples illustrates how to construct a simple leaf-list data node. The leaf-list nodes can be constructed the same way as regular leaf nodes...
Fri, 8 Feb, 2019 at 2:17 PM
How do I construct a data node for a YANG leaf?
The following examples illustrates how to construct a simple leaf data node. There are multiple ways to construct leaf nodes depending on what information y...
Mon, 2 Apr, 2018 at 3:53 PM
How do I construct a data tree for a YANG container?
The following examples illustrates how to construct a container data node. The container nodes can be constructed different ways depending whether it is a ...
Mon, 2 Apr, 2018 at 3:53 PM
How do I create a binary leaf from an internal memory buffer?
The normal APIs for creating values expect a zero-terminated string, so they cannot be used for creating a YANG leaf with the binary type. Use the val_m...
Fri, 8 Feb, 2019 at 2:18 PM
How do I iterate through the list entries?
In this article the following simple YANG data model will be used for illustration: module example { namespace "http://www.yumaworks.com/ns/examp...
Thu, 22 Aug, 2019 at 8:32 PM
How to get val_value_t's value in string format?
If the val_value_t node represents a leaf or a leaf-list node and its value can be converted to a string format then the following API can be used to malloc...
Wed, 24 Jul, 2019 at 8:05 PM