p4lang / tutorials

P4 language tutorials
Apache License 2.0
1.36k stars 887 forks source link

Output format problem of flow table item in mycontroller.py in P4 runtime #522

Closed PengYiHua2000 closed 11 months ago

PengYiHua2000 commented 1 year ago

Dear friends: When executing mycontroller.py in solution, the number output by the terminal is not in an easy to read format. How can we ensure that the code correctly outputs the character format we need? Unexpected output like this: MyIngress.myTunnel_exact: hdr.myTunnel.dst_id '\x00d' -> MyIngress.myTunnel_egress dstAddr '\x08\x00\x00\x00\x02"' port '\x00\x01'

Thank you very much! pengyihua

jafingerhut commented 1 year ago

I would recommend asking this question on this web forum, where you may find more people reading and answering than here: https://forum.p4.org

PengYiHua2000 commented 1 year ago

Thank you very much for your kind reply. I will search this question in the forum.