diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-29 22:50:26 +0200 | 
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2024-01-31 02:20:13 +0200 | 
| commit | 4317c8ffa6675c9f91b710c7c75739706e1edfef (patch) | |
| tree | cac992fbf82d4f96cb323a2f4746c9c870dec17d /mgmtd/mgmt_main.c | |
| parent | e2caf64ef76ba2191d01962ef65a89990530992e (diff) | |
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.c | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/mgmtd/mgmt_main.c b/mgmtd/mgmt_main.c index 6dbd1f2e52..5be849b63c 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.  	 */  | 
