lb: vpp hang when executing "lb flush" commands with more parameters. 29/22329/3
authorHongjun Ni <[email protected]>
Fri, 27 Sep 2019 15:01:50 +0000 (23:01 +0800)
committerOle Trøan <[email protected]>
Mon, 30 Sep 2019 09:32:47 +0000 (09:32 +0000)
- get all vip list.
- get all as list per vip.

Ticket: VPP-1778
Type: fix

Change-Id: I0d82f38960ef1264d04ac07589a555d01f6e8110
Signed-off-by: Hongjun Ni <[email protected]>
src/plugins/lb/cli.c

index a12a633..4f64755 100644 (file)
@@ -542,6 +542,12 @@ lb_flush_vip_command_fn (vlib_main_t * vm,
       }
     else if (unformat(line_input, "port %d", &port))
       ;
+    else
+      {
+        error = clib_error_return (0, "unknown input '%U'",
+          format_unformat_error, line_input);
+        goto done;
+      }
   }
 
   if (port == 0)