Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.

P4 Sources

We employ the P4 sources from the fabric-tna project.

To compile a relevant P4 target binary and P4 info file, do:

git clone https://github.com/stratum/fabric-tna.git

cd ./fabric-tna

make fabric-int-v1model

At this point, a relevant build.sh script is being run and a P4 program is being compiled.

After a successful compilation, some artifacts (p4info.txt, bmv2.json) will be generated and placed into build sub-folder.

ls build/fabric-int/bmv2 
_pp.p4     bmv2.json  p4info.txt

These artefacts are now moved into this repository.