diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-05-30 16:14:25 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-05-30 16:14:25 -0400 |
| commit | 85a6806dce11e5226c0ae793e68290ddc783d7ff (patch) | |
| tree | 34bd4ad5f87a8e8c3e9f2d7711369783b2e80862 /lib/command.c | |
| parent | 979dd989c46c318ad489d3be9219383ba19980ae (diff) | |
lib, vtysh: make debug memstats work in vtysh
Allow vtysh to send the 'debug memstats-on-exit' command
to the running daemons.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/command.c')
| -rw-r--r-- | lib/command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/command.c b/lib/command.c index 29f41a712c..5335969fbc 100644 --- a/lib/command.c +++ b/lib/command.c @@ -2803,9 +2803,10 @@ void cmd_init(int terminal) /* Each node's basic commands. */ install_element(VIEW_NODE, &show_version_cmd); install_element(ENABLE_NODE, &show_startup_config_cmd); - install_element(ENABLE_NODE, &debug_memstats_cmd); if (terminal) { + install_element(ENABLE_NODE, &debug_memstats_cmd); + install_element(VIEW_NODE, &config_list_cmd); install_element(VIEW_NODE, &config_exit_cmd); install_element(VIEW_NODE, &config_quit_cmd); @@ -2839,9 +2840,10 @@ void cmd_init(int terminal) install_element(CONFIG_NODE, &domainname_cmd); install_element(CONFIG_NODE, &no_domainname_cmd); install_element(CONFIG_NODE, &frr_version_defaults_cmd); - install_element(CONFIG_NODE, &debug_memstats_cmd); if (terminal > 0) { + install_element(CONFIG_NODE, &debug_memstats_cmd); + install_element(CONFIG_NODE, &password_cmd); install_element(CONFIG_NODE, &no_password_cmd); install_element(CONFIG_NODE, &enable_password_cmd); |
