diff options
author | hasso <hasso> | 2004-10-03 20:11:32 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-10-03 20:11:32 +0000 |
commit | e7168df4eff0d377621c45deb32cfcfa72e0dd83 (patch) | |
tree | 86c4017761ffd8cfdbc16223915a9f537844c4f2 /lib/command.c | |
parent | eef1fe11b89c5ec3c035ff6e4a9acfbc5780b539 (diff) |
Big vtysh cleanup. See changelogs for details.
Diffstat (limited to 'lib/command.c')
-rw-r--r-- | lib/command.c | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/lib/command.c b/lib/command.c index 2ed62526..a4cf9ebf 100644 --- a/lib/command.c +++ b/lib/command.c @@ -3300,23 +3300,22 @@ cmd_init (int terminal) } install_element (ENABLE_NODE, &show_startup_config_cmd); install_element (ENABLE_NODE, &show_version_cmd); - if (terminal) - { - install_element (ENABLE_NODE, &config_terminal_length_cmd); - install_element (ENABLE_NODE, &config_terminal_no_length_cmd); - } if (terminal) - install_default (CONFIG_NODE); - install_element (CONFIG_NODE, &hostname_cmd); - install_element (CONFIG_NODE, &no_hostname_cmd); - install_element (CONFIG_NODE, &password_cmd); - install_element (CONFIG_NODE, &password_text_cmd); - install_element (CONFIG_NODE, &enable_password_cmd); - install_element (CONFIG_NODE, &enable_password_text_cmd); - install_element (CONFIG_NODE, &no_enable_password_cmd); - if (terminal) { + install_element (ENABLE_NODE, &config_terminal_length_cmd); + install_element (ENABLE_NODE, &config_terminal_no_length_cmd); + + install_default (CONFIG_NODE); + + install_element (CONFIG_NODE, &hostname_cmd); + install_element (CONFIG_NODE, &no_hostname_cmd); + install_element (CONFIG_NODE, &password_cmd); + install_element (CONFIG_NODE, &password_text_cmd); + install_element (CONFIG_NODE, &enable_password_cmd); + install_element (CONFIG_NODE, &enable_password_text_cmd); + install_element (CONFIG_NODE, &no_enable_password_cmd); + install_element (CONFIG_NODE, &config_log_stdout_cmd); install_element (CONFIG_NODE, &no_config_log_stdout_cmd); install_element (CONFIG_NODE, &config_log_file_cmd); @@ -3335,10 +3334,7 @@ cmd_init (int terminal) install_element (CONFIG_NODE, &no_banner_motd_cmd); install_element (CONFIG_NODE, &service_terminal_length_cmd); install_element (CONFIG_NODE, &no_service_terminal_length_cmd); - } - if (terminal) - { install_element(VIEW_NODE, &show_thread_cpu_cmd); install_element(ENABLE_NODE, &show_thread_cpu_cmd); } |