blob: e1696a5a1cd950ac8cbdfef74894530b425acbdf [file] [log] [blame]
Carmelo Casconed6615072017-12-15 00:53:43 -08001#!/bin/bash
2set -xe
3
4cp /etc/skel/.bashrc ~/
5cp /etc/skel/.profile ~/
6cp /etc/skel/.bash_logout ~/
7
8# ONOS
9git clone https://github.com/opennetworkinglab/onos.git
Carmelo Casconec5569c22018-04-18 10:09:15 +090010tee -a ~/.bashrc <<EOF
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080011
12# ONOS
13export ONOS_ROOT=~/onos
14source ~/onos/tools/dev/bash_profile
Carmelo Casconef11513d2018-01-16 00:31:14 -080015source ~/onos/tools/dev/p4vm/bm-commands.sh
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080016EOF
Carmelo Casconed6615072017-12-15 00:53:43 -080017
18# Build and install P4 tools
Carmelo Casconeb7e618d2018-01-12 18:31:33 -080019bash /vagrant/install-p4-tools.sh
Carmelo Casconed6615072017-12-15 00:53:43 -080020
21# Mininet
22git clone git://github.com/mininet/mininet ~/mininet
Carmelo Cascone57defd32018-05-11 14:34:01 -070023sudo ~/mininet/util/install.sh -nv
Andrea Campanella4f9085e2018-05-29 12:04:16 +020024
25# Trellis routing repo
26git clone https://github.com/opennetworkinglab/routing.git
27
28# Set Python path for bmv2 in fabric.p4
29echo 'export PYTHONPATH=$PYTHONPATH:~/onos/tools/dev/mininet/bmv2.py' >> ~/.bashrc