summaryrefslogtreecommitdiffstats
path: root/src/plugins/rdma/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/rdma/cli.c')
-rw-r--r--src/plugins/rdma/cli.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/rdma/cli.c b/src/plugins/rdma/cli.c
index 8919603e293..e1ccbb66c0b 100644
--- a/src/plugins/rdma/cli.c
+++ b/src/plugins/rdma/cli.c
@@ -41,7 +41,9 @@ rdma_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{
- if (unformat (line_input, "name %s", &args.ifname))
+ if (unformat (line_input, "host-if %s", &args.ifname))
+ ;
+ else if (unformat (line_input, "name %s", &args.name))
;
else
return clib_error_return (0, "unknown input `%U'",
@@ -52,6 +54,7 @@ rdma_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
rdma_create_if (vm, &args);
vec_free (args.ifname);
+ vec_free (args.name);
return args.error;
}
@@ -59,7 +62,7 @@ rdma_create_command_fn (vlib_main_t * vm, unformat_input_t * input,
/* *INDENT-OFF* */
VLIB_CLI_COMMAND (rdma_create_command, static) = {
.path = "create interface rdma",
- .short_help = "create interface rdma <name ifname>",
+ .short_help = "create interface rdma <host-if ifname> [name <name>]",
.function = rdma_create_command_fn,
};
/* *INDENT-ON* */