summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-01-28 00:41:42 +0100
committerIgor Ryzhov <iryzhov@nfware.com>2021-02-24 13:31:20 +0100
commita4e2dac168da8c3884288f023451308f0bacb726 (patch)
treecf1d134ada4157c8628dc4bcabe805065b9c845b /vtysh
parentospfd: don't rely on instance existence in vty (diff)
downloadfrr-a4e2dac168da8c3884288f023451308f0bacb726.tar.xz
frr-a4e2dac168da8c3884288f023451308f0bacb726.zip
vtysh: fix show_per_daemon for multi-instance ospfd
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'vtysh')
-rw-r--r--vtysh/vtysh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index e026a2862..b41364c04 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -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");