summaryrefslogtreecommitdiffstats
path: root/lib/northbound_cli.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2022-02-04 21:29:16 +0100
committerRafael F. Zalamena <rzalamena@opensourcerouting.org>2022-03-02 20:31:47 +0100
commit852dfb3013cb122567834c77796921f0e0643107 (patch)
tree2fad4dc2696da747c0d9e4b362f6691bf16b2e5a /lib/northbound_cli.c
parentMerge pull request #10657 from patrasar/pim_remove_in_addr_none (diff)
downloadfrr-852dfb3013cb122567834c77796921f0e0643107.tar.xz
frr-852dfb3013cb122567834c77796921f0e0643107.zip
lib: fix show yang operational state output
Don't show default configuration values for state nodes. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/northbound_cli.c')
-rw-r--r--lib/northbound_cli.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c
index 1e25f6a1e..3644e2342 100644
--- a/lib/northbound_cli.c
+++ b/lib/northbound_cli.c
@@ -1510,9 +1510,7 @@ DEFPY (show_yang_operational_data,
(void)lyd_validate_all(&dnode, ly_ctx, 0, NULL);
/* Display the data. */
- if (lyd_print_mem(&strp, dnode, format,
- LYD_PRINT_WITHSIBLINGS | LYD_PRINT_WD_ALL)
- != 0
+ if (lyd_print_mem(&strp, dnode, format, LYD_PRINT_WITHSIBLINGS) != 0
|| !strp) {
vty_out(vty, "%% Failed to display operational data.\n");
yang_dnode_free(dnode);