You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone. I'm trying to use p4runtime-shell in order to connect and push p4 config files to a Virtual Switch that's running SONiC. The image was built using the following repo: https://github.com/sonic-net/sonic-buildimage
Now, while I'm able to connect to the switch using p4runtime-shell with: python3 -m p4runtime_sh --grpc-addr <Switch-Address>:9559 when I try to push the config files (python3 -m p4runtime_sh --grpc-addr <Switch-Address>:9559 --config <path-to-info-file>/p4info.txt,<path-to-bmv2-file>/bmv2.json), I receive the following error:
Is anyone familiar with this error and why it occurs? I have also pushed the same p4 config files to a Virtual Switch that's running P4RT using Stratum and the connection as well as the push of the files is successful. I do believe that either the P4RT app that runs on SONiC may be out of date, or that the specific files are unable to be pushed. Yet again, I did try some other files, but I got the same error message.
I would like someone to point me in the right direction. I'm kind of new to P4 and related tasks, so if the error is unrelated to the p4runtime-shell and I should post the issue to a more appropriate repo, please let me know.
I'm attaching the related files, if that may help.
Note: That is a link to the latest P4Runtime API specification version of the .proto file defining message formats. Particular implementations might be using an older version of that file, or in some case might even customize it more than that.
What confuses me about that error is that if you are truly using the p4info.txt file that you attach, it does not mention controller_packet_metadata anywhere in it, so it is weird that the network device is complaining that it cannot handle such a message. Either that, or some software between you providing the p4info.txt file you attached, and the place the error occurs, is modifying your P4Info data.
Hello everyone. I'm trying to use p4runtime-shell in order to connect and push p4 config files to a Virtual Switch that's running SONiC. The image was built using the following repo: https://github.com/sonic-net/sonic-buildimage
Now, while I'm able to connect to the switch using p4runtime-shell with:
python3 -m p4runtime_sh --grpc-addr <Switch-Address>:9559
when I try to push the config files (python3 -m p4runtime_sh --grpc-addr <Switch-Address>:9559 --config <path-to-info-file>/p4info.txt,<path-to-bmv2-file>/bmv2.json
), I receive the following error:Is anyone familiar with this error and why it occurs? I have also pushed the same p4 config files to a Virtual Switch that's running P4RT using Stratum and the connection as well as the push of the files is successful. I do believe that either the P4RT app that runs on SONiC may be out of date, or that the specific files are unable to be pushed. Yet again, I did try some other files, but I got the same error message.
I would like someone to point me in the right direction. I'm kind of new to P4 and related tasks, so if the error is unrelated to the p4runtime-shell and I should post the issue to a more appropriate repo, please let me know.
I'm attaching the related files, if that may help.
p4info.txt:
p4info.txt
bmv2.json:
bmv2.json
main.p4: main.p4.txt
The text was updated successfully, but these errors were encountered: