summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaul <paul>2006-01-17 17:42:03 +0000
committerpaul <paul>2006-01-17 17:42:03 +0000
commita4b642e350d5cec678b9f66799cf750ba094addd (patch)
treebdc99e700d9f699d712bd520847e86d17a0d19db
parent44e62540e81dfe1a704b8f038ead8d8b18ba3cf9 (diff)
downloadquagga-a4b642e350d5cec678b9f66799cf750ba094addd.tar.bz2
quagga-a4b642e350d5cec678b9f66799cf750ba094addd.tar.xz
[lib/vty] Add 'no terminal monitor' alias
2006-01-17 Paul Jakma <paul.jakma@sun.com> * vty.c: (no_terminal_monitor_cmd) New ALIAS for terminal_no_monitor, in the more normal negating format, to be kind to my fingers. (vty_init) install new ALIAS.
-rw-r--r--lib/ChangeLog4
-rw-r--r--lib/vty.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index a3270c68..430e6aac 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -3,6 +3,10 @@
* md5.{c,h}: (md5_loop) Is better off taking a void * and doing
cast to byte wise type internally, avoids needs for casts
in users.
+ * vty.c: (no_terminal_monitor_cmd) New ALIAS for
+ terminal_no_monitor, in the more normal negating format,
+ to be kind to my fingers.
+ (vty_init) install new ALIAS.
2006-01-16 Paul Jakma <paul.jakma@sun.com>
diff --git a/lib/vty.c b/lib/vty.c
index bb8df129..206af065 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2740,6 +2740,13 @@ DEFUN (terminal_no_monitor,
return CMD_SUCCESS;
}
+ALIAS (terminal_no_monitor,
+ no_terminal_monitor_cmd,
+ "no terminal monitor",
+ NO_STR
+ "Set terminal line parameters\n"
+ "Copy debug output to the current terminal line\n")
+
DEFUN (show_history,
show_history_cmd,
"show history",
@@ -2908,6 +2915,7 @@ vty_init (struct thread_master *master_thread)
install_element (CONFIG_NODE, &show_history_cmd);
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);