Skip to content

QuTech-Delft/netsquid-p4

Repository files navigation

NetSquid P4

pipeline status coverage report

Introduction

This package provides NetSquid components for simulating networks that execute P4 pipelines.

Pre-requisites

NetSquid

This package requires NetSquid which requires a user account on its community forum.

PyP4

This package relies on PyP4 to handle the core P4 processing.

P4C

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.

Documentation

To view the documentation, run make html in the docs directory and open docs/build/html/index.html.

Examples

This repository contains basic usage examples in the examples directory.