cli: make q work again 95/11195/1
authorFlorin Coras <fcoras@cisco.com>
Fri, 16 Mar 2018 16:13:37 +0000 (09:13 -0700)
committerFlorin Coras <fcoras@cisco.com>
Fri, 16 Mar 2018 16:13:37 +0000 (09:13 -0700)
After the addition of "qos" cli, "quit" command is not the only match
for "q". Therefore, add a separate "q" cli to avoid ambiguity.

Change-Id: I84f6ddce14ef7d5fa7089537cb62adfecea0e501
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vlib/unix/cli.c

index 5838bbb..3df9a98 100644 (file)
@@ -2958,6 +2958,14 @@ VLIB_CLI_COMMAND (unix_cli_quit_command, static) = {
 };
 /* *INDENT-ON* */
 
+/* *INDENT-OFF* */
+VLIB_CLI_COMMAND (unix_cli_q_command, static) = {
+  .path = "q",
+  .short_help = "Exit CLI",
+  .function = unix_cli_quit,
+};
+/* *INDENT-ON* */
+
 /** CLI command to execute a VPP command script. */
 static clib_error_t *
 unix_cli_exec (vlib_main_t * vm,