onos/tools/dev/p4vm/user-bootstrap.sh
Carmelo Cascone d66150733a ONOS-7330 Added ONOS-P4 VM build script
Builds and OVA from scratch with the most updated tools in one command.
The build process is based on Vagrant.

Change-Id: I633d99092946f99e877f0c97631a4f99c5b1f37e
2017-12-20 21:56:02 +00:00

19 lines
438 B
Bash
Executable File

#!/bin/bash
set -xe
cp /etc/skel/.bashrc ~/
cp /etc/skel/.profile ~/
cp /etc/skel/.bash_logout ~/
# ONOS
git clone https://github.com/opennetworkinglab/onos.git
echo "export ONOS_ROOT=~/onos" >> ~/.bashrc
echo "source ~/onos/tools/dev/bash_profile" >> ~/.bashrc
# Build and install P4 tools
bash ~/onos/tools/dev/bin/onos-setup-p4-dev
# Mininet
git clone git://github.com/mininet/mininet ~/mininet
sudo ~/mininet/util/install.sh -nwv