vtysh: Update vtysh commands with all daemon str

Update the vtysh commands that target all daemons to
use the DAEMONS_* macro.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
Stephen Worley 2019-06-13 17:08:36 -04:00
parent db9a7cf7c0
commit 2e77de9516

View File

@ -2269,20 +2269,10 @@ DEFUN (vtysh_show_work_queues,
DEFUN (vtysh_show_work_queues_daemon,
vtysh_show_work_queues_daemon_cmd,
"show work-queues <zebra|ripd|ripngd|ospfd|ospf6d|bgpd|isisd|pbrd|fabricd|pimd|staticd>",
"show work-queues " DAEMONS_LIST,
SHOW_STR
"Work Queue information\n"
"For the zebra daemon\n"
"For the rip daemon\n"
"For the ripng daemon\n"
"For the ospf daemon\n"
"For the ospfv6 daemon\n"
"For the bgp daemon\n"
"For the isis daemon\n"
"For the pbr daemon\n"
"For the fabricd daemon\n"
"For the pim daemon\n"
"For the static daemon\n")
DAEMONS_STR)
{
int idx_protocol = 2;
unsigned int i;
@ -2629,20 +2619,10 @@ DEFUNSH(VTYSH_ALL, no_vtysh_config_enable_password,
DEFUN (vtysh_write_terminal,
vtysh_write_terminal_cmd,
"write terminal [<zebra|ripd|ripngd|ospfd|ospf6d|ldpd|bgpd|isisd|fabricd|pimd|staticd>]",
"write terminal ["DAEMONS_LIST"]",
"Write running configuration to memory, network, or terminal\n"
"Write to terminal\n"
"For the zebra daemon\n"
"For the rip daemon\n"
"For the ripng daemon\n"
"For the ospf daemon\n"
"For the ospfv6 daemon\n"
"For the ldpd daemon\n"
"For the bgp daemon\n"
"For the isis daemon\n"
"For the fabricd daemon\n"
"For the pim daemon\n"
"For the static daemon\n")
DAEMONS_STR)
{
unsigned int i;
char line[] = "do write terminal\n";
@ -2668,20 +2648,10 @@ DEFUN (vtysh_write_terminal,
DEFUN (vtysh_show_running_config,
vtysh_show_running_config_cmd,
"show running-config [<zebra|ripd|ripngd|ospfd|ospf6d|ldpd|bgpd|isisd|fabricd|pimd|staticd>]",
"show running-config ["DAEMONS_LIST"]",
SHOW_STR
"Current operating configuration\n"
"For the zebra daemon\n"
"For the rip daemon\n"
"For the ripng daemon\n"
"For the ospf daemon\n"
"For the ospfv6 daemon\n"
"For the ldp daemon\n"
"For the bgp daemon\n"
"For the isis daemon\n"
"For the fabricd daemon\n"
"For the pim daemon\n"
"For the static daemon\n")
DAEMONS_STR)
{
return vtysh_write_terminal(self, vty, argc, argv);
}