acl-plugin: an elog-based tracing implementation for troubleshooting the conn cleaner...
[vpp.git] / src / plugins / acl / acl.c
index 8e1880a..1f1517c 100644 (file)
@@ -2522,6 +2522,21 @@ acl_set_aclplugin_fn (vlib_main_t * vm,
                  goto done;
                }
            }
+         if (unformat (input, "event-trace"))
+           {
+             if (!unformat (input, "%u", &val))
+               {
+                 error = clib_error_return (0,
+                                            "expecting trace level, got `%U`",
+                                            format_unformat_error, input);
+                 goto done;
+               }
+             else
+               {
+                 am->trace_sessions = val;
+                 goto done;
+               }
+           }
          goto done;
        }
       if (unformat (input, "timeout"))