Loading...
Searching...
No Matches
Implicit node creation options
Trees » Data Tree
Collaboration diagram for Implicit node creation options:

## Macros

#define | LYD_IMPLICIT_NO_CONFIG 0x02
#define | LYD_IMPLICIT_NO_DEFAULTS 0x08
#define | LYD_IMPLICIT_NO_STATE 0x01
#define | LYD_IMPLICIT_OUTPUT 0x04

## Detailed Description

Various options to change lyd_new_implicit*() behavior.

Default behavior:

- both configuration and state missing implicit nodes are added.
- for existing RPC/action nodes, input implicit nodes are added.
- all implicit node types are added (non-presence containers, default leaves, and default leaf-lists).

## Macro Definition Documentation

## LYD_IMPLICIT_NO_CONFIG

#define LYD_IMPLICIT_NO_CONFIG 0x02

Do not add any implicit config nodes.

Definition at line 1638 of file tree_data.h.

## LYD_IMPLICIT_NO_DEFAULTS

#define LYD_IMPLICIT_NO_DEFAULTS 0x08

Do not add any default nodes (leaves/leaf-lists), only non-presence containers.

Definition at line 1640 of file tree_data.h.

## LYD_IMPLICIT_NO_STATE

#define LYD_IMPLICIT_NO_STATE 0x01

Do not add any implicit state nodes.

Definition at line 1637 of file tree_data.h.

## LYD_IMPLICIT_OUTPUT

#define LYD_IMPLICIT_OUTPUT 0x04

For RPC/action nodes, add output implicit nodes instead of input.

Definition at line 1639 of file tree_data.h.