summaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorMaxime Peim <mpeim@cisco.com>2024-07-31 17:11:16 +0200
committerBeno�t Ganne <bganne@cisco.com>2024-08-06 13:38:27 +0000
commit26a6b19a0efb0604103e3d4275406fe6c498f878 (patch)
tree47fca3ac695ec303037e16568e58a2c47e90f645 /src/vlib
parenta67da25008299d825fc7d88a3c527b1708192a4c (diff)
vlib: add 'exit' as alias to 'quit'
Type: improvement Change-Id: I099739a246dbdb6fdca136d06bc8e4b3f493a839 Signed-off-by: Maxime Peim <mpeim@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/unix/cli.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vlib/unix/cli.c b/src/vlib/unix/cli.c
index 90cf61d811d..051c5730aed 100644
--- a/src/vlib/unix/cli.c
+++ b/src/vlib/unix/cli.c
@@ -3329,6 +3329,12 @@ VLIB_CLI_COMMAND (unix_cli_q_command, static) = {
.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,