In order to be able to start P4 programming, we will concretely start setting up a P4 development environment using Open Source P4Lang P4 community software.
Installing p4lang software with apt-get will download and install:
p4lang-3rd-party (focal)
alongside:
p4c
bmv2
p4lang-pi
Verification
check p4lang packages installation on Debian
dpkg -l | grep p4lang
ii bmv2 20200615~d447b6a~release~nightly-0+57.1 amd64 p4lang behavioral-model
ii p4c 20200628~7c03f854~release~nightly-0 amd64 p4c p4lang project compiler
ii p4lang-pi 20200601~822a0d1~release~nightly-0+39.1 amd64 Implementation framework of a P4Runtime server
check p4lang packages installation on Ubuntu 18.04 (same for 20.04)
dpkg -l | grep p4lang
ii bmv2 1.13.0-202006160902-d447b6a~ubuntu18.04.1 amd64 p4lang behavioral-model
ii p4c 1.1.0-rc1-202006191103-3917a1c~ubuntu18.04.1 amd64 p4c p4lang project compiler
ii p4lang-3rd-party 1.1~bionic-1 all This package installs 3rd party software needed by p4lang software
ii p4lang-pi 0.8-202006020517-822a0d1~ubuntu18.04.1 amd64 Implementation framework of a P4Runtime server
Clone RARE code from repository
cd ~/
git clone https://github.com/frederic-loui/RARE.git