diff options
author | Hongjun Ni <hongjun.ni@intel.com> | 2019-09-27 23:01:50 +0800 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2019-09-30 09:32:47 +0000 |
commit | 2f77ee891911f6013997955e9f77d598aacd49ed (patch) | |
tree | 3630f769e8a2b176a46908a753032793cfd2904a /src | |
parent | 54e099f1011433ae4bd65449110fb974cccb28c4 (diff) |
lb: vpp hang when executing "lb flush" commands with more parameters.
- get all vip list.
- get all as list per vip.
Ticket: VPP-1778
Type: fix
Change-Id: I0d82f38960ef1264d04ac07589a555d01f6e8110
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lb/cli.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/lb/cli.c b/src/plugins/lb/cli.c index a12a63354cc..4f64755f4d7 100644 --- a/src/plugins/lb/cli.c +++ b/src/plugins/lb/cli.c @@ -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) |