]> git.proxmox.com Git - mirror_frr.git/commitdiff
lib: fix show yang operational state output
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 4 Feb 2022 20:29:16 +0000 (17:29 -0300)
committerRafael F. Zalamena <rzalamena@opensourcerouting.org>
Wed, 2 Mar 2022 19:31:47 +0000 (16:31 -0300)
Don't show default configuration values for state nodes.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
lib/northbound_cli.c

index 1e25f6a1e282ec0dc67a92ffe594d9396866c2a0..3644e23425249092876f7611e78fd024d90e3c7e 100644 (file)
@@ -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);