diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-28 02:35:14 +0200 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-31 02:20:13 +0200 |
| commit | dda5de0340f30ed15cc172046b451e013ad5e16e (patch) | |
| tree | 71baac71cb693b3f628799c1cfcaae79d7802e3a /lib/mgmt_msg_native.c | |
| parent | e13c590abe1217c8088a9493069a448d356d5c00 (diff) | |
mgmtd: fix printing an empty data tree
We don't need to create an actual tree to print an empty tree, libyang
handles NULL just fine. The actual problem is that `yang_dnode_new`
creates a tree by validating it, and the validation creates all implicit
default nodes. Therefore, when called with "with-default" flags, instead
of getting an empty tree, we get a tree with all top-level default set.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/mgmt_msg_native.c')
0 files changed, 0 insertions, 0 deletions
