vlib: add 'exit' as alias to 'quit'
Type: improvement
Change-Id: I099739a246dbdb6fdca136d06bc8e4b3f493a839
Signed-off-by: Maxime Peim <mpeim@cisco.com>
diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c
index 90cf61d..051c573 100644
--- a/src/vlib/unix/cli.c
+++ b/src/vlib/unix/cli.c
@@ -3329,6 +3329,12 @@
.function = unix_cli_quit,
};
+VLIB_CLI_COMMAND (unix_cli_exit_command, static) = {
+ .path = "exit",
+ .short_help = "Exit CLI",
+ .function = unix_cli_quit,
+};
+
/** CLI command to execute a VPP command script. */
static clib_error_t *
unix_cli_exec (vlib_main_t * vm,