[P4-discuss] how to debug the p4 <v1model.p4>

Nate Foster 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.

-N

On Thu, Oct 12, 2017 at 1:19 PM, Phanindra Palagummi <
phanindra.palagummi at gmail.com> wrote:

> Hello,
>
> 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,
> Phani
>
> _______________________________________________
> P4-discuss mailing list
> P4-discuss at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-discuss_lists.p4.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-discuss_lists.p4.org/attachments/20171012/0d2d27fe/attachment-0002.html>


More information about the P4-discuss mailing list