*: Fix duplicate commands from view/enable node consolidation
diff --git a/lib/vty.c b/lib/vty.c
index bf259fc..7ba277f 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2668,8 +2668,8 @@
}
}
-DEFUN (config_who,
- config_who_cmd,
+DEFUN (who,
+ who_cmd,
"who",
"Display who is on vty\n")
{
@@ -3098,11 +3098,10 @@
/* Install bgp top node. */
install_node (&vty_node, vty_config_write);
- install_element (RESTRICTED_NODE, &config_who_cmd);
+ install_element (RESTRICTED_NODE, &who_cmd);
install_element (RESTRICTED_NODE, &show_history_cmd);
- install_element (VIEW_NODE, &config_who_cmd);
+ install_element (VIEW_NODE, &who_cmd);
install_element (VIEW_NODE, &show_history_cmd);
- install_element (ENABLE_NODE, &config_who_cmd);
install_element (CONFIG_NODE, &line_vty_cmd);
install_element (CONFIG_NODE, &service_advanced_vty_cmd);
install_element (CONFIG_NODE, &no_service_advanced_vty_cmd);
@@ -3111,7 +3110,6 @@
install_element (ENABLE_NODE, &terminal_monitor_cmd);
install_element (ENABLE_NODE, &terminal_no_monitor_cmd);
install_element (ENABLE_NODE, &no_terminal_monitor_cmd);
- install_element (ENABLE_NODE, &show_history_cmd);
install_default (VTY_NODE);
install_element (VTY_NODE, &exec_timeout_min_cmd);