mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 10:38:05 +00:00
vtysh: Convert 'show logging' to use helper function.
The 'show logging' command was not using the 'show_per_daemon' function for some reason. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
3c8954852c
commit
7292d8510f
@ -1941,20 +1941,8 @@ DEFUN (vtysh_show_logging,
|
|||||||
SHOW_STR
|
SHOW_STR
|
||||||
"Show current logging configuration\n")
|
"Show current logging configuration\n")
|
||||||
{
|
{
|
||||||
unsigned int i;
|
return show_per_daemon("do show logging\n",
|
||||||
int ret = CMD_SUCCESS;
|
"Logging configuration for %s:\n");
|
||||||
char line[] = "do show logging\n";
|
|
||||||
|
|
||||||
for (i = 0; i < array_size(vtysh_client); i++)
|
|
||||||
if (vtysh_client[i].fd >= 0) {
|
|
||||||
fprintf(stdout, "Logging configuration for %s:\n",
|
|
||||||
vtysh_client[i].name);
|
|
||||||
ret = vtysh_client_execute(&vtysh_client[i], line,
|
|
||||||
stdout);
|
|
||||||
fprintf(stdout, "\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFUNSH(VTYSH_ALL, vtysh_log_stdout, vtysh_log_stdout_cmd, "log stdout",
|
DEFUNSH(VTYSH_ALL, vtysh_log_stdout, vtysh_log_stdout_cmd, "log stdout",
|
||||||
|
Loading…
Reference in New Issue
Block a user