...
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
| Image 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 |
---|
title | Install 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 |
---|
title | Install P4lang environment on Debian 10 |
---|
|
Code Block |
---|
language | bash |
---|
theme | Midnight |
---|
title | add 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 |
---|
language | bash |
---|
theme | Midnight |
---|
title | add 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 |
---|
language | bash |
---|
theme | Midnight |
---|
title | install 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 |
---|
| Installing p4lang software with apt-get will download and install: |
|
...