aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/lisp-gpe/lisp_gpe.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2017-12-01 04:54:06 -0800
committerChris Luke <chris_luke@comcast.com>2017-12-02 01:07:08 +0000
commit9fa1581cc40b656b6e00d77479fc2424cd50a126 (patch)
tree8ad566b2fbf36c6d027fd3e0eca788680edd98c2 /src/vnet/lisp-gpe/lisp_gpe.c
parent7a2e1bd6c7137552399d7e0cfb414e0d59b3f98f (diff)
gpe: fix gpe enable/disable command
Return error if not input provided. Change-Id: I4a68fafaf4efd74395e513baa7f18fa55b83de87 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/lisp-gpe/lisp_gpe.c')
-rw-r--r--src/vnet/lisp-gpe/lisp_gpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/lisp-gpe/lisp_gpe.c b/src/vnet/lisp-gpe/lisp_gpe.c
index 8ee2a72d381..c7b3d887cfa 100644
--- a/src/vnet/lisp-gpe/lisp_gpe.c
+++ b/src/vnet/lisp-gpe/lisp_gpe.c
@@ -321,7 +321,7 @@ lisp_gpe_enable_disable_command_fn (vlib_main_t * vm,
/* Get a line of input. */
if (!unformat_user (input, unformat_line_input, line_input))
- return 0;
+ return clib_error_return (0, "expected enable | disable");
while (unformat_check_input (line_input) != UNFORMAT_END_OF_INPUT)
{