[P4-discuss] how to debug the p4 <v1model.p4>
jnfoster at cs.cornell.edu
Thu Oct 12 13:22:14 EDT 2017
A standard trick is to introduce a table "debug" whose keys are the
headers/metatdata you want to track. The Bmv2 logs will show those values
at the program point where the table was applied.
On Thu, Oct 12, 2017 at 1:19 PM, Phanindra Palagummi <
phanindra.palagummi at gmail.com> wrote:
> I am research student in IIT Madras, interested doing some research work
> in P4. With current P4 capabilities I want to know how to debug the P4
> program for V1model switch.
> I suppose "error class" and verify() is not present for v1model, if so,
> are there any ways to debug the P4 program for v1model. (i.e, how to know
> my packet is parsed successfully, what header values it is picking etc?).
> Please help me on this.
> Thank you,
> P4-discuss mailing list
> P4-discuss at lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-discuss