From 4317c8ffa6675c9f91b710c7c75739706e1edfef Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Mon, 29 Jan 2024 22:50:26 +0200 Subject: mgmtd: add support for with-defaults parameter to get-data Signed-off-by: Igor Ryzhov --- mgmtd/mgmt_main.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mgmtd/mgmt_main.c') 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 @@ -144,6 +144,16 @@ static struct frr_signal_t mgmt_signals[] = { 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 @@ -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. */ -- cgit v1.2.3