Skip to content

Commit

Permalink
P4 Developer Day 2018 Spring (p4lang#159)
Browse files Browse the repository at this point in the history
* Repository reorganization for 2018 Spring P4 Developer Day.

* Port tutorial exercises to P4Runtime with static controller (p4lang#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 (p4lang#157)

* Port Load Balance to P4 Runtime Static Controller (p4lang#158)
  • Loading branch information
jnfoster authored Jun 1, 2018
1 parent e7e6899 commit dc08948
Show file tree
Hide file tree
Showing 503 changed files with 1,433 additions and 30,667 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*.json
!*p4app.json
!topology.json
!*-runtime.json

*.pcap

Expand Down
49 changes: 0 additions & 49 deletions P4D2_2017_Fall/exercises/README.md

This file was deleted.

1 change: 0 additions & 1 deletion P4D2_2017_Fall/exercises/basic/Makefile

This file was deleted.

173 changes: 0 additions & 173 deletions P4D2_2017_Fall/exercises/basic/README.md

This file was deleted.

4 changes: 0 additions & 4 deletions P4D2_2017_Fall/exercises/basic/s1-commands.txt

This file was deleted.

4 changes: 0 additions & 4 deletions P4D2_2017_Fall/exercises/basic/s2-commands.txt

This file was deleted.

4 changes: 0 additions & 4 deletions P4D2_2017_Fall/exercises/basic/s3-commands.txt

This file was deleted.

1 change: 0 additions & 1 deletion P4D2_2017_Fall/exercises/basic_tunnel/Makefile

This file was deleted.

Loading

0 comments on commit dc08948

Please sign in to comment.