Loading...
Searching...
No Matches
Data merge options.
Trees » Data Tree
Collaboration diagram for Data merge options.:

## Macros

#define | LYD_MERGE_DEFAULTS 0x02
#define | LYD_MERGE_DESTRUCT 0x01
#define | LYD_MERGE_WITH_FLAGS 0x04

## Detailed Description

Various options to change lyd_merge_tree(), lyd_merge_siblings(), and lyd_merge_module() behavior.

Default behavior:

- source data tree is not modified in any way,
- any default nodes in the source are ignored if there are explicit nodes in the target,
- any metadata are ignored - those present in the target are kept, those in the source are not merged.
- any merged nodes flags are set as non-validated.

## Macro Definition Documentation

## LYD_MERGE_DEFAULTS

#define LYD_MERGE_DEFAULTS 0x02

Default nodes in the source tree replace even explicit nodes in the target.

Definition at line 2063 of file tree_data.h.

## LYD_MERGE_DESTRUCT

#define LYD_MERGE_DESTRUCT 0x01

Spend source data tree in the function, it cannot be used afterwards!

Definition at line 2062 of file tree_data.h.

## LYD_MERGE_WITH_FLAGS

#define LYD_MERGE_WITH_FLAGS 0x04

Merged nodes (those missing in the source) keep their exact flags.

Definition at line 2064 of file tree_data.h.