Carmelo Cascone | d661507 | 2017-12-15 00:53:43 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | set -xe |
| 3 | |
| 4 | cp /etc/skel/.bashrc ~/ |
| 5 | cp /etc/skel/.profile ~/ |
| 6 | cp /etc/skel/.bash_logout ~/ |
| 7 | |
| 8 | # ONOS |
| 9 | git clone https://github.com/opennetworkinglab/onos.git |
Carmelo Cascone | c5569c2 | 2018-04-18 10:09:15 +0900 | [diff] [blame] | 10 | tee -a ~/.bashrc <<EOF |
Carmelo Cascone | b7e618d | 2018-01-12 18:31:33 -0800 | [diff] [blame] | 11 | |
| 12 | # ONOS |
| 13 | export ONOS_ROOT=~/onos |
| 14 | source ~/onos/tools/dev/bash_profile |
Carmelo Cascone | f11513d | 2018-01-16 00:31:14 -0800 | [diff] [blame] | 15 | source ~/onos/tools/dev/p4vm/bm-commands.sh |
Carmelo Cascone | b7e618d | 2018-01-12 18:31:33 -0800 | [diff] [blame] | 16 | EOF |
Carmelo Cascone | d661507 | 2017-12-15 00:53:43 -0800 | [diff] [blame] | 17 | |
| 18 | # Build and install P4 tools |
Carmelo Cascone | b7e618d | 2018-01-12 18:31:33 -0800 | [diff] [blame] | 19 | bash /vagrant/install-p4-tools.sh |
Carmelo Cascone | 95e5afd | 2018-07-17 14:45:23 +0200 | [diff] [blame] | 20 | # We'll delete bmv2 sources later... |
| 21 | cp ~/p4tools/bmv2/tools/veth_setup.sh ~/veth_setup.sh |
| 22 | cp ~/p4tools/bmv2/tools/veth_teardown.sh ~/veth_teardown.sh |
Carmelo Cascone | d661507 | 2017-12-15 00:53:43 -0800 | [diff] [blame] | 23 | |
| 24 | # Mininet |
Carmelo Cascone | 95e5afd | 2018-07-17 14:45:23 +0200 | [diff] [blame] | 25 | git clone git://github.com/mininet/mininet |
Carmelo Cascone | 57defd3 | 2018-05-11 14:34:01 -0700 | [diff] [blame] | 26 | sudo ~/mininet/util/install.sh -nv |
Andrea Campanella | 4f9085e | 2018-05-29 12:04:16 +0200 | [diff] [blame] | 27 | |
| 28 | # Trellis routing repo |
| 29 | git clone https://github.com/opennetworkinglab/routing.git |
| 30 | |
Carmelo Cascone | 95e5afd | 2018-07-17 14:45:23 +0200 | [diff] [blame] | 31 | # fabric-p4test |
| 32 | git clone https://github.com/opennetworkinglab/fabric-p4test.git |
| 33 | |
Andrea Campanella | 4f9085e | 2018-05-29 12:04:16 +0200 | [diff] [blame] | 34 | # Set Python path for bmv2 in fabric.p4 |
| 35 | echo 'export PYTHONPATH=$PYTHONPATH:~/onos/tools/dev/mininet/bmv2.py' >> ~/.bashrc |
Carmelo Cascone | 95e5afd | 2018-07-17 14:45:23 +0200 | [diff] [blame] | 36 | |
| 37 | # FIXME: for some reason protobuf python bindings are not properly installed |
| 38 | cd ~/p4tools/protobuf/python |
| 39 | sudo pip install . |