mirror_frr/mgmtd
Igor Ryzhov dda5de0340 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>
2024-01-31 02:20:13 +02:00
..
.gitignore mgmtd: Bringup MGMTD daemon and datastore module support 2023-03-21 22:08:32 -04:00
Makefile mgmtd: Bringup MGMTD daemon and datastore module support 2023-03-21 22:08:32 -04:00
mgmt_be_adapter.c mgmtd: backend subscriptions to notifications 2024-01-30 15:41:26 -05:00
mgmt_be_adapter.h mgmtd: backend subscriptions to notifications 2024-01-30 15:41:26 -05:00
mgmt_ds.c mgmt: delete candidate scratch buffer 2023-10-06 21:18:33 +03:00
mgmt_ds.h lib, mgmtd: fix commit history location 2024-01-27 19:02:52 +01:00
mgmt_fe_adapter.c mgmtd: fix printing an empty data tree 2024-01-31 02:20:13 +02:00
mgmt_fe_adapter.h mgmtd: add support for with-defaults parameter to get-data 2024-01-31 02:20:13 +02:00
mgmt_history.c lib, mgmtd: fix commit history location 2024-01-27 19:02:52 +01:00
mgmt_history.h mgmtd: assert an assertion for coverity 2023-06-06 15:12:58 -04:00
mgmt_main.c mgmtd: add support for with-defaults parameter to get-data 2024-01-31 02:20:13 +02:00
mgmt_memory.c mgmtd: step 5: add get-tree txn functionality 2023-12-28 10:41:54 +00:00
mgmt_memory.h mgmtd: step 5: add get-tree txn functionality 2023-12-28 10:41:54 +00:00
mgmt_testc.c mgmtd: backend subscriptions to notifications 2024-01-30 15:41:26 -05:00
mgmt_txn.c mgmtd: add ability to choose datastore to get data from 2024-01-31 02:20:13 +02:00
mgmt_txn.h mgmtd: add ability to choose datastore to get data from 2024-01-31 02:20:13 +02:00
mgmt_vty.c mgmtd: add ability to choose datastore to get data from 2024-01-31 02:20:13 +02:00
mgmt.c mgmtd: clarify the startup dance in comments 2023-10-12 14:38:39 -04:00
mgmt.h lib, mgmtd: remove function duplication 2023-11-17 11:27:03 +01:00
subdir.am mgmtd: add support for with-defaults parameter to get-data 2024-01-31 02:20:13 +02:00