From 33d162909f9d87507d85d494527d121e081f4a58 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 16 Mar 2018 09:13:37 -0700 Subject: [PATCH] cli: make q work again 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 --- src/vlib/unix/cli.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c index 5838bbbc7a2..3df9a98ffb1 100644 --- a/src/vlib/unix/cli.c +++ b/src/vlib/unix/cli.c @@ -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, -- 2.16.6