This package provides NetSquid components for simulating networks that execute P4 pipelines.
This package requires NetSquid which requires a user account on its community forum.
This package relies on PyP4 to handle the core P4 processing.
All P4 examples and test programs have been pre-compiled using the BMv2 backend and checked into the repository. If you wish to compile your own programs, please use a suitable P4 compiler. The p4lang/p4c can compile the classical architectures, such as V1model, provided by PyP4. To compile custom architectures, such as V1Quantum, you will need a suitable compiler fork. Please refer to the documentation of the relevant architecture.
To view the documentation, run make html
in the docs directory and open
docs/build/html/index.html
.
This repository contains basic usage examples in the examples directory.