* Repository reorganization for 2018 Spring P4 Developer Day.
* Port tutorial exercises to P4Runtime with static controller (#156)
* Switch VM to a minimal Ubuntu 16.04 desktop image
* Add commands to install Protobuf Python bindings to user_bootstrap.sh
* Implement P4Runtime static controller for use in exercises
From the exercise perspective, the main difference is that control plane
rules are now specified using JSON files instead of CLI commands. Such
JSON files define rules that use the same name for tables, keys, etc. as
in the P4Info file.
All P4Runtime requests generated as part of the make run process are
logged in the exercise's “logs” directory, making it easier for students
to see the actual P4Runtime messages sent to the switch.
Only the "basic" exercise has been ported to use P4Runtime.
The "p4runtime" exercise has been updated to work with P4Runtime
protocol changes.
Known issues:
- make run hangs in case of errors when running the P4Runtime controller
(probably due to gRPC stream channel threads not terminated properly)
- missing support for inserting table entries with default action
(can specify in P4 program as a workaround)
* Force install protobuf python module
* Fixing Ctrl-C hang by shutdown switches
* Moving gRPC error print to function for readability
Unforuntately, if this gets moved out of the file, the process hangs.
We'll need to figure out how why later.
* Renaming ShutdownAllSwitches -> ShutdownAllSwitchConnections
* Reverting counter index change
* Porting the ECN exercise to use P4 Runtime Static Controller
* updating the README in the ecn exercise to reflect the change in rule files
* Allow set table default action in P4Runtime static controller
* Fixed undefined match string when printing P4Runtime table entry
* Updated basic_tunnel exercise to use P4Runtime controller.
* Changed default action in the basic exercise's ipv4_lpm table to drop
* Porting the MRI exercise to use P4runtime with static controller
* Updating readme to reflect the change of controller for mri
* Update calc exercise for P4Runtime static controller
* Port source_routing to P4 Runtime static controller (#157)
* Port Load Balance to P4 Runtime Static Controller (#158)
- Minor fixes to p4runtime exercise and README
- Adding p4runtime/solution
- Adding p4runtime/topology.json
- Updating .gitignore to include solution directory and topology.json
- Fixing root-bootstrap to exit on errors
- Updating VM name in Vagrantfile
- Setting up VM to automatically log 'p4' user in on startup
Summary of changes:
- Adding the p4runtime starter code and solution.
- Adding NO_P4, BMV2_SWITCH_EXE and P4C_ARGS to utils/Makefile
- Updated p4runtime/Makefile to use variables
- Adding conversion functions for match and action param values
- Separating P4Info and P4Runtime libraries
- Updating global README and adding p4runtime/README.md
- Disabling screen saver on VM GUI
- Adding desktop icons for Terminal, Wireshare and Sublime Text
- Updating topo.pdf -> png for Markdown viewing in basic_tunnel and
p4runtime READMEs
* Created p4runtime exercise directory with draft P4 program
* Updating VM
- Adding p4 to vboxsf group for VirtualBox Shared Folders
- Adding gRPC Python package for p4 runtime
- Setting up VM to use 2 CPUs
* Updating .gitignore for PyCharms and Mac OS
* Adding P4RuntimeSwitch type and support in run_exercises
If the grpc switch target is used, we will instantiate a P4RuntimeSwitch.
Ideally, this will get merged with BMv2's P4Switch and can be removed
* Adding p4 runtime and p4info browser libraries
Also, adding a Makefile for this project