[P4-dev] API support to read p4 register values in bmv2?

niemand at darkenwood.net niemand at darkenwood.net
Tue May 23 07:21:59 EDT 2017

The bmv2 thrift API allows for the reading and writing of registers and 
counters. The thrift API definition is available at 
For an example of its use in python, take a look at the runtime CLI.

On 05/23/2017 11:21 AM, Dongeun Suh wrote:
> Hi p4-dev community,
> I have the following questions related to the bmv2's API.
> 1) Does the bmv2 support API through which one can get p4-defined 
> internal values (register/counter etc.) in runtime?
> 2) If such API exists, is there any document (i.e., user guide) 
> available for the API?
> (e.g., how to use it, what types of p4-defined values/fields are readable)
> Thanks in advance.
> Dongeun.
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org

More information about the P4-dev mailing list