From dcd7e24037c86cc9f1aee8fac670bf1ac376adac Mon Sep 17 00:00:00 2001 From: jinshaohui Date: Sun, 30 May 2021 05:40:56 +0100 Subject: [PATCH] policer: fix vnet/policer cli > handle an exception Type: fix Signed-off-by: jinshaohui Change-Id: I67b7d0b52c33a5b13ace8fe2d918139d2820e9bf --- src/vnet/policer/policer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.16.6