Merge pull request #3371 from donaldsharp/vtysh_ospf_instance

vtysh: Don't attempt to reconnect the non-instanced ospf process
This commit is contained in:
Russ White 2018-11-26 07:55:49 -05:00 committed by GitHub
commit 7af31aa6fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -577,7 +577,7 @@ static int vtysh_execute_func(const char *line, int pager)
&& (cmd->daemon == vtysh_client[i].flag)) { && (cmd->daemon == vtysh_client[i].flag)) {
for (vc = &vtysh_client[i]; vc; for (vc = &vtysh_client[i]; vc;
vc = vc->next) vc = vc->next)
if (vc->fd < 0) if (vc->fd == VTYSH_WAS_ACTIVE)
vtysh_reconnect(vc); vtysh_reconnect(vc);
} }
if (vtysh_client[i].fd < 0 if (vtysh_client[i].fd < 0