summaryrefslogtreecommitdiffstats
path: root/mgmtd/mgmt_main.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-01-29 21:50:26 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-31 01:20:13 +0100
commit4317c8ffa6675c9f91b710c7c75739706e1edfef (patch)
treecac992fbf82d4f96cb323a2f4746c9c870dec17d /mgmtd/mgmt_main.c
parentyang: add more ietf models (diff)
downloadfrr-4317c8ffa6675c9f91b710c7c75739706e1edfef.tar.xz
frr-4317c8ffa6675c9f91b710c7c75739706e1edfef.zip
mgmtd: add support for with-defaults parameter to get-data
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'mgmtd/mgmt_main.c')
-rw-r--r--mgmtd/mgmt_main.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/mgmtd/mgmt_main.c b/mgmtd/mgmt_main.c
index 6dbd1f2e5..5be849b63 100644
--- a/mgmtd/mgmt_main.c
+++ b/mgmtd/mgmt_main.c
@@ -145,6 +145,16 @@ extern const struct frr_yang_module_info frr_staticd_cli_info;
#endif
/*
+ * These are modules that are only needed by mgmtd and hence not included into
+ * the lib and backend daemons.
+ */
+const struct frr_yang_module_info ietf_netconf_with_defaults_info = {
+ .name = "ietf-netconf-with-defaults",
+ .ignore_cfg_cbs = true,
+ .nodes = { { .xpath = NULL } },
+};
+
+/*
* These are stub info structs that are used to load the modules used by backend
* clients into mgmtd. The modules are used by libyang in order to support
* parsing binary data returns from the backend.
@@ -167,6 +177,9 @@ static const struct frr_yang_module_info *const mgmt_yang_modules[] = {
&frr_vrf_info,
&frr_affinity_map_cli_info,
+ /* mgmtd-only modules */
+ &ietf_netconf_with_defaults_info,
+
/*
* YANG module info used by backend clients get added here.
*/