Go client for P4Runtime
This project is still a work in progress. We make no guarantee for the stability of the API and may modify existing functions in the client API. We welcome feedback and contributions!.
For a good place to start, check out the l2_switch example.
To make the controller work you have to follow the next steps. First of all you need to start the mininet
# from the root of the directory
$ cd ./cmd/controller/mininet
$ make
Then you need to open another terminal window, and then start the controller
# from the root of the directory
$ cd ./cmd/controller/
$ make
At this point everything should work, you can test it by going into the mininet terminal and run pingall command. No packet should be dropped
mininet> pingall
Then you can connect to localhost:3333 via http to interact with the server via the UI