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 | d661507 | 2017-12-15 00:53:43 -0800 | [diff] [blame] | 20 | |
| 21 | # Mininet |
| 22 | git clone git://github.com/mininet/mininet ~/mininet |
Carmelo Cascone | 57defd3 | 2018-05-11 14:34:01 -0700 | [diff] [blame] | 23 | sudo ~/mininet/util/install.sh -nv |
Andrea Campanella | 4f9085e | 2018-05-29 12:04:16 +0200 | [diff] [blame] | 24 | |
| 25 | # Trellis routing repo |
| 26 | git clone https://github.com/opennetworkinglab/routing.git |
| 27 | |
| 28 | # Set Python path for bmv2 in fabric.p4 |
| 29 | echo 'export PYTHONPATH=$PYTHONPATH:~/onos/tools/dev/mininet/bmv2.py' >> ~/.bashrc |