Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print p4 table entry info error #33

Open
Colaplusice opened this issue Feb 26, 2020 · 3 comments
Open

print p4 table entry info error #33

Colaplusice opened this issue Feb 26, 2020 · 3 comments
Assignees

Comments

@Colaplusice
Copy link

I insert a entry into table successfully, And I want to get entry info :
image
but I get the follow errors:
image
I don't know where the problem is . Please help me fix the issue.

@antoninbas
Copy link
Member

Thanks for reporting this. Could you share the P4 program (or even better the bmv2 JSON & P4Info files if you have them), as well as the command you used to create the table entry, so I can reproduce the issue?

@antoninbas
Copy link
Member

I see what the issue is.

That _PrintFieldName method was introduced in Protobuf 3.7.0 (https://github.com/protocolbuffers/protobuf/blob/v3.7.0/python/google/protobuf/text_format.py#L395) but you probably have an older version installed. I need to fix this since p4runtime-shell is supposed to work with Protobuf 3.6.0. If you use the provided docker image to run the shell (via the ./p4runtime-sh-docker script), you should not run into this error.

@antoninbas antoninbas self-assigned this Mar 3, 2020
@maryamiftikhar12
Copy link

@Colaplusice Can you please send me the code/cmd to enter p4 run time table entries. To be able to forward ping packets, I need to add two table entries on l2_exact_table in leaf1 -- one that matches on destination MAC address of h1b and forwards traffic to port 4 (where h1b is attached), and vice versa (h1a is attached to port 3) but I am unable to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants