libyang  1.0.253
YANG data modeling language library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Diff options
Collaboration diagram for Diff options:

Macros

#define LYD_DIFFOPT_NOSIBLINGS   0x0800
 
#define LYD_DIFFOPT_WITHDEFAULTS   0x0001
 

Detailed Description

Macro Definition Documentation

#define LYD_DIFFOPT_NOSIBLINGS   0x0800

The both trees to diff have to instantiate the same schema node so only the single subtree is compared.

Definition at line 434 of file tree_data.h.

#define LYD_DIFFOPT_WITHDEFAULTS   0x0001

Take default nodes with their values into account and handle them as part of both trees. Summary of the modified behavior:

  • deleted node is replaced with implicit default node - LYD_DIFF_CHANGED instead delete
  • created node replaces an implicit default node - LYD_DIFF_CHANGED instead create
  • in both cases even if the values match - LYD_DIFF_CHANGED is still returned, because dlft flag was changed Note that in this case, applying the resulting transactions on the first tree does not result to the exact second tree, because instead of having implicit default nodes you are going to have explicit default nodes.

Definition at line 437 of file tree_data.h.