![]() |
libyang 1.0.184
YANG data modeling language library
|
Macros | |
| #define | LYP_WITHSIBLINGS 0x01 |
| #define | LYP_FORMAT 0x02 |
| #define | LYP_KEEPEMPTYCONT 0x04 |
| #define | LYP_WD_MASK 0xF0 |
| #define | LYP_WD_EXPLICIT 0x00 |
| #define | LYP_WD_TRIM 0x10 |
| #define | LYP_WD_ALL 0x20 |
| #define | LYP_WD_ALL_TAG 0x40 |
| #define | LYP_WD_IMPL_TAG 0x80 |
| #define | LYP_NETCONF 0x100 |
Validity flags for data nodes.
| #define LYP_WITHSIBLINGS 0x01 |
| #define LYP_KEEPEMPTYCONT 0x04 |
| #define LYP_WD_EXPLICIT 0x00 |
| #define LYP_WD_TRIM 0x10 |
| #define LYP_WD_ALL_TAG 0x40 |
Same as LYP_WD_ALL but also adds attribute 'default' with value 'true' to all nodes that has its default value. The 'default' attribute has namespace: urn:ietf:params:xml:ns:netconf:default:1.0 and thus the attributes are printed only when the ietf-netconf-with-defaults module is present in libyang context (but in that case this namespace is always printed).
| #define LYP_WD_IMPL_TAG 0x80 |
Same as LYP_WD_ALL_TAG but the attributes are added only to the nodes that are not explicitly present in the original data tree despite their value is equal to their default value. There is the same limitation regarding the presence of ietf-netconf-with-defaults module in libyang context.
| #define LYP_NETCONF 0x100 |
Print the data tree for use in NETCONF meaning: