mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 20:15:08 +00:00
vtysh: fix autocomplete garbage printouts
The semantics for suppressing output received from daemons changed slightly when pipe actions were introduced, causing raw autocomplete output to be printed where it shouldn't have been. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
62a9c814e1
commit
8d70e7fe32
@ -3357,9 +3357,12 @@ static void vtysh_autocomplete(vector comps, struct cmd_token *token)
|
|||||||
snprintf(accmd, sizeof(accmd), "autocomplete %d %s %s", token->type,
|
snprintf(accmd, sizeof(accmd), "autocomplete %d %s %s", token->type,
|
||||||
token->text, token->varname ? token->varname : "-");
|
token->text, token->varname ? token->varname : "-");
|
||||||
|
|
||||||
|
vty->of_saved = vty->of;
|
||||||
|
vty->of = NULL;
|
||||||
for (i = 0; i < array_size(vtysh_client); i++)
|
for (i = 0; i < array_size(vtysh_client); i++)
|
||||||
vtysh_client_run_all(&vtysh_client[i], accmd, 1, vtysh_ac_line,
|
vtysh_client_run_all(&vtysh_client[i], accmd, 1, vtysh_ac_line,
|
||||||
comps);
|
comps);
|
||||||
|
vty->of = vty->of_saved;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct cmd_variable_handler vtysh_var_handler[] = {
|
static const struct cmd_variable_handler vtysh_var_handler[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user