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

## Macros

#define | LYD_DIFF_DEFAULTS 0x01
#define | LYD_DIFF_META 0x02

## Detailed Description

Various options to change lyd_diff_tree() and lyd_diff_siblings() behavior.

Default behavior:

- any default nodes are treated as non-existent and ignored.
- nodes with 'none' operation can appear only in case a leaf node has not changed its value and only its default flag.
- metadata differences are not included in the diff.

## Macro Definition Documentation

## LYD_DIFF_DEFAULTS

#define LYD_DIFF_DEFAULTS 0x01

Default nodes in the trees are not ignored but treated similarly to explicit nodes. Also, leaves and leaf-lists are added into diff even in case only their default flag (state) was changed.

Definition at line 2156 of file tree_data.h.

## LYD_DIFF_META

#define LYD_DIFF_META 0x02

All metadata are compared and the full difference reported in the diff always in the form of 'yang:meta-<operation>' metadata. Also, equal nodes with only changes in their metadata will be present in the diff with the 'none' operation.

Definition at line 2159 of file tree_data.h.