Hi Kenny,

I found needed pretty much only during the low level debugging, so
there are a couple of debug CLIs that help with that.

Most necessary for low-level troubleshooting was to show the given specific
session by thread+index, you can do that by
"show acl-plugin sessions thread <N> index <M>" - the session info
will popup along with the rest of the output.

"show ace-plugin sessions verbose <N>" for larger values of N will
dump the entire sessions bihash table by calling the format_bihash. I
used it maybe once ever, so I decided to keep just the existing
format_bihash use.

If you feel like you'd need it on a more frequent basis, then the
above outputs might be a bit too terse. Feel free to make a new CLI,
say "show acl-plugin sessions dump [ thread <N> index <M> ]" output
the way you like it, will be nice to have a more user-friendly output
too!

As for the API call - maybe you could outline the use case a bit more.
We could add something to do it, but considering that dumping all the
sessions is a resource-intensive operation, I think there should be
filters put in place for getting only the minimum required.

Thank you!

--a




On 10/14/17, khers <s3m2e1.6s...@gmail.com> wrote:
> Hi folks,
>
> I have a question, in related to ACL plugin, Is there any command or
> API for showing session list (extract sessions from session table and
> showing content of them in vat or vppctl env?
>
> Best Regards,
>
> Kenny
> _______________________________________________
> vpp-dev mailing list
> vpp-dev@lists.fd.io
> https://lists.fd.io/mailman/listinfo/vpp-dev
>
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to