diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-06-13 23:08:36 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-06-19 23:20:24 +0200 |
commit | 2e77de95162842c85cd00b281896082eb566553e (patch) | |
tree | ac50aa0102fa534ab364fe39a867649b1c99f331 | |
parent | lib: Add some all daemon command strings (diff) | |
download | frr-2e77de95162842c85cd00b281896082eb566553e.tar.xz frr-2e77de95162842c85cd00b281896082eb566553e.zip |
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>
-rw-r--r-- | vtysh/vtysh.c | 42 |
1 files changed, 6 insertions, 36 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c index c3aeb27eb..1d5fa8cbc 100644 --- a/vtysh/vtysh.c +++ b/vtysh/vtysh.c @@ -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); } |