Updates the examples to use the new build scripts (except Hula). (#74)
* Added Makefile and topology.jsons for all examples. * use branch * Updated MRI exercise (#73) * Updated MRI exercise * Updated basic_tunnel.p4 for changes to p4 lang * updated other examples
This commit is contained in:
1
P4D2_2017_Fall/exercises/calc/Makefile
Normal file
1
P4D2_2017_Fall/exercises/calc/Makefile
Normal file
@@ -0,0 +1 @@
|
||||
include ../../utils/Makefile
|
||||
@@ -19,7 +19,7 @@ switch in Mininet to test its behavior.
|
||||
|
||||
1. In your shell, run:
|
||||
```bash
|
||||
./run.sh
|
||||
make
|
||||
```
|
||||
This will:
|
||||
* compile `calc.p4`, and
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
{
|
||||
"program": "calc.p4",
|
||||
"language": "p4-16",
|
||||
"targets": {
|
||||
"mininet": {
|
||||
"num-hosts": 2,
|
||||
"switch-config": "calc.config"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
P4APPRUNNER=../../utils/p4apprunner.py
|
||||
mkdir -p build
|
||||
tar -czf build/p4app.tgz * --exclude='build'
|
||||
#cd build
|
||||
sudo python $P4APPRUNNER p4app.tgz --build-dir ./build
|
||||
12
P4D2_2017_Fall/exercises/calc/topology.json
Normal file
12
P4D2_2017_Fall/exercises/calc/topology.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"hosts": [
|
||||
"h1",
|
||||
"h2"
|
||||
],
|
||||
"switches": {
|
||||
"s1": { "cli_input" : "s1-commands.txt" }
|
||||
},
|
||||
"links": [
|
||||
["h1", "s1"], ["h2", "s1"]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user