From: Ed Warnicke Date: Mon, 30 Jul 2018 20:48:32 +0000 (-0500) Subject: Fix create memif socket X-Git-Tag: v18.10-rc1~213 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F24%2F13824%2F2;p=vpp.git Fix create memif socket create interface memif [id ] [socket-id ] ... Can optionally take a socket-id. You create a socket-id with: create memif socket [id ] [filename ] Unfortunately, this doesn't work because "create memif" was deprecated. It results in: vpp# create memif socket id 0 filename /run/vpp/test.socket command deprecated. Please use 'create interface memif' instead. This fixes it by clipping out the create memif command entirely. Change-Id: If503758706bf758b6cb46e958200527a5856c600 Signed-off-by: Ed Warnicke --- diff --git a/src/plugins/memif/cli.c b/src/plugins/memif/cli.c index f2c8829aa6a..dd13adb929b 100644 --- a/src/plugins/memif/cli.c +++ b/src/plugins/memif/cli.c @@ -266,22 +266,6 @@ VLIB_CLI_COMMAND (memif_create_command, static) = { }; /* *INDENT-ON* */ -static clib_error_t * -create_memif_command_fn (vlib_main_t * vm, unformat_input_t * input, - vlib_cli_command_t * cmd) -{ - vlib_cli_output (vm, "command deprecated. Please use " - "'create interface memif' instead.\n"); - return 0; -} - -/* *INDENT-OFF* */ -VLIB_CLI_COMMAND (create_memif_command, static) = { - .path = "create memif", - .function = create_memif_command_fn, -}; -/* *INDENT-ON* */ - static clib_error_t * memif_delete_command_fn (vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd)