mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 12:49:18 +00:00
Merge pull request #5444 from opensourcerouting/show-candidate-fix
lib: fix display of candidate configurations
This commit is contained in:
commit
7a4429d1f1
@ -432,12 +432,12 @@ void nb_cli_show_config_prepare(struct nb_config *config, bool with_defaults)
|
|||||||
lyd_schema_sort(config->dnode, 1);
|
lyd_schema_sort(config->dnode, 1);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When "with-defaults" is used, call lyd_validate() only to create
|
* Call lyd_validate() only to create default child nodes, ignoring
|
||||||
* default child nodes, ignoring any possible validation error. This
|
* any possible validation error. This doesn't need to be done when
|
||||||
* doesn't need to be done when displaying the running configuration
|
* displaying the running configuration since it's always fully
|
||||||
* since it's always fully validated.
|
* validated.
|
||||||
*/
|
*/
|
||||||
if (with_defaults && config != running_config)
|
if (config != running_config)
|
||||||
(void)lyd_validate(&config->dnode,
|
(void)lyd_validate(&config->dnode,
|
||||||
LYD_OPT_CONFIG | LYD_OPT_WHENAUTODEL,
|
LYD_OPT_CONFIG | LYD_OPT_WHENAUTODEL,
|
||||||
ly_native_ctx);
|
ly_native_ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user