Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 956 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 956 Bytes

p4runtime-go-client

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.

p4 controller

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