policer: fix vnet/policer cli <policer bind [unbind] name <name> <worker>> handle 94/32494/3
authorjinshaohui <jinsh11@chinatelecom.cn>
Sun, 30 May 2021 04:40:56 +0000 (05:40 +0100)
committerNeale Ranns <neale@graphiant.com>
Fri, 4 Jun 2021 08:43:12 +0000 (08:43 +0000)
an exception

Type: fix

Signed-off-by: jinshaohui <jinsh11@chinatelecom.cn>
Change-Id: I67b7d0b52c33a5b13ace8fe2d918139d2820e9bf

src/vnet/policer/policer.c

index e3cc8f7..516a029 100644 (file)
@@ -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
        {