detiuaveiro / PECI-05-2022-23

https://detiuaveiro.github.io/PECI-05-2022-23/
0 stars 0 forks source link

Docker REST P4 Compiler #29

Closed davidjosearaujo closed 1 year ago

davidjosearaujo commented 1 year ago

To avoid the painful installation of the P4 compiler (p4c), since P4.org already builds a docker with the p4c inside, the p4capi is a wrapper that implements a simple REST API so any system can utilize the compiler in an easy manner, all a user need to do is make a POST request with the P4 source file and a JSON with the parameter one normally would use with p4c in the terminal, and the response will be a zip file with the set of files resulting from the compilation.