summaryrefslogtreecommitdiffstats
path: root/src/vnet/policer
diff options
context:
space:
mode:
authorjinshaohui <jinsh11@chinatelecom.cn>2021-05-30 05:40:56 +0100
committerNeale Ranns <neale@graphiant.com>2021-06-04 08:43:12 +0000
commitdcd7e24037c86cc9f1aee8fac670bf1ac376adac (patch)
tree0378cc7a503de0400a5eb30610bcc1b67b528f55 /src/vnet/policer
parent5f33d0d43784bd08c334dac58220040a3d0da28a (diff)
policer: fix vnet/policer cli <policer bind [unbind] name <name> <worker>> handle
an exception Type: fix Signed-off-by: jinshaohui <jinsh11@chinatelecom.cn> Change-Id: I67b7d0b52c33a5b13ace8fe2d918139d2820e9bf
Diffstat (limited to 'src/vnet/policer')
-rw-r--r--src/vnet/policer/policer.c4
1 files 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
{