Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In P4Lang P4 for dummies [ #001 ], you learned that behavioural language offers you access to dataplane programming. 

Requirement

  • Basic Linux/Unix knowledge
  • Service provider networking knowledge

image2020-6-29_13-54-48.pngImage Modified

Overview

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. 

...

Expand
titleInstall your favorite operating system

In our example we will use the same debian stable image (buster) installed as a VirtualBox VM

and we add a bridge network interface to or our laptop RJ45 connection.


Expand
titleInstall P4lang environment on Debian 10


Code Block
languagebash
themeMidnight
titleadd p4lang repository in /etc/apt/sources.list.d/p4.list
deb https://download.opensuse.org/repositories/home:/frederic-loui:/p4lang:/p4c:/master/Debian_10/ ./


Code Block
languagebash
themeMidnight
titleadd debian 10 repository key from download.opensuse.org
wget https://download.opensuse.org/repositories/home:/frederic-loui:/p4lang:/p4c:/master/Debian_10/Release.key
sudo apt-key add ./Release.key


Code Block
languagebash
themeMidnight
titleinstall p4lang packages (just install p4c and it will install p4lang-pi and bmv2)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install p4c


Info
titleNote

Installing p4lang software with apt-get will download and install:

  • p4c
  • bmv2
  • p4lang-pi


...