]> git.puffer.fish Git - mirror/frr.git/commitdiff
vtysh: fix show_per_daemon for multi-instance ospfd 7957/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 27 Jan 2021 23:41:42 +0000 (02:41 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 24 Feb 2021 12:31:20 +0000 (15:31 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
vtysh/vtysh.c

index e026a2862889955a21f5970714b58bd7457ab3af..b41364c04d1531f99dbb2b7b0c1be2b47655834f 100644 (file)
@@ -2693,7 +2693,7 @@ static int show_per_daemon(struct vty *vty, struct cmd_token **argv, int argc,
        char *line = do_prepend(vty, argv, argc);
 
        for (i = 0; i < array_size(vtysh_client); i++)
-               if (vtysh_client[i].fd >= 0) {
+               if (vtysh_client[i].fd >= 0 || vtysh_client[i].next) {
                        vty_out(vty, headline, vtysh_client[i].name);
                        ret = vtysh_client_execute(&vtysh_client[i], line);
                        vty_out(vty, "\n");