| cp /etc/skel/.bash_logout ~/ |
| git clone https://github.com/opennetworkinglab/onos.git |
| source ~/onos/tools/dev/bash_profile |
| source ~/onos/tools/dev/p4vm/bm-commands.sh |
| # Build and install P4 tools |
| bash /vagrant/install-p4-tools.sh |
| # We'll delete bmv2 sources later... |
| cp ~/p4tools/bmv2/tools/veth_setup.sh ~/veth_setup.sh |
| cp ~/p4tools/bmv2/tools/veth_teardown.sh ~/veth_teardown.sh |
| git clone git://github.com/mininet/mininet |
| sudo ~/mininet/util/install.sh -nv |
| git clone https://github.com/opennetworkinglab/routing.git |
| git clone https://github.com/opennetworkinglab/fabric-p4test.git |
| # Set Python path for bmv2 in fabric.p4 |
| echo 'export PYTHONPATH=$PYTHONPATH:~/onos/tools/dev/mininet/bmv2.py' >> ~/.bashrc |
| # FIXME: for some reason protobuf python bindings are not properly installed |
| cd ~/p4tools/protobuf/python |