Skip to content

UniboSecurityResearch/p4runtime-go-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • Go 56.3%
  • P4 18.7%
  • HTML 12.8%
  • Python 10.2%
  • Makefile 1.7%
  • Shell 0.3%