p4lang / p4app

Apache License 2.0
112 stars 58 forks source link

Example: read and write registers #60

Closed theojepsen closed 5 years ago

theojepsen commented 5 years ago

An example of how to read and write registers from a P4 program.

The P4Runtime in BMV2 doesn't support reading/writing registers yet. Once there is support for that, we should update this example's main.py to show how to read registers from the control plane.