From: jinshaohui Date: Sun, 30 May 2021 04:40:56 +0000 (+0100) Subject: policer: fix vnet/policer cli > handle X-Git-Tag: v22.02-rc0~347 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F32494%2F3;p=vpp.git policer: fix vnet/policer cli > handle an exception Type: fix Signed-off-by: jinshaohui Change-Id: I67b7d0b52c33a5b13ace8fe2d918139d2820e9bf --- diff --git a/src/vnet/policer/policer.c b/src/vnet/policer/policer.c index e3cc8f75f3a..516a029dcee 100644 --- a/src/vnet/policer/policer.c +++ b/src/vnet/policer/policer.c @@ -597,9 +597,9 @@ policer_bind_command_fn (vlib_main_t *vm, unformat_input_t *input, { if (unformat (line_input, "name %s", &name)) ; - else if (unformat (line_input, "unapply")) + else if (unformat (line_input, "unbind")) bind = 0; - else if (unformat (line_input, "%d", &bind)) + else if (unformat (line_input, "%d", &worker)) ; else {