printer BUGFIX ignore NP state containers for explicit print
@@ -129,9 +129,11 @@ ly_should_print(const struct lyd_node *node, int options)
/* LYDP_WD_EXPLICIT
* - print only if it contains status data in its subtree */
LYD_TREE_DFS_BEGIN(node, next, elem) {
+ if ((elem->schema->nodetype != LYS_CONTAINER) || (elem->schema->flags & LYS_PRESENCE)) {
if (elem->schema->flags & LYS_CONFIG_R) {
return 1;
}
+ }
LYD_TREE_DFS_END(node, next, elem)
}
return 0;
