alshabib
Committed by Ali Al-Shabibi

adding a mininet vagrant box

Change-Id: I0c89c35a9e6768b3c3640c0895d405901e38799e
......@@ -21,4 +21,17 @@ Vagrant.configure(2) do |config|
v.cpus = 2
end
end
config.vm.define "mn" do |d|
d.vm.box = "ubuntu/trusty64"
d.vm.hostname = "mn"
d.vm.network "private_network", ip: "10.100.198.100"
d.vm.provision :shell, path: "scripts/bootstrap_ansible.sh"
d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /vagrant/ansible/mn.yml -c local"
d.vm.provider "virtualbox" do |v|
v.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
v.memory = 2048
end
end
end
......
- hosts: localhost
remote_user: vagrant
serial: 1
roles:
- mininet
......@@ -18,8 +18,8 @@
template_options: --release trusty
container_config:
- "lxc.network.ipv4=10.100.198.201/24"
container_command: |
ln -s /usr/lib/jvm/java/bin/java /usr/bin/java
container_command: |
ln -s /usr/lib/jvm/java/bin/java /usr/bin/java
apt-get update
apt-get install -y openssh-server
echo "ubuntu ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/99-onos-sudoers
......
- name: git is present
apt:
name: git
force: yes
tags: [common]
- name: Clone mininet repository
git: repo=https://github.com/mininet/mininet.git dest=mininet
- name: Install mininet
command: mininet/util/install.sh -a
......@@ -2,9 +2,10 @@ export OCI=10.100.198.201
export OC1=10.100.198.201
export OC2=10.100.198.202
export OC3=10.100.198.203
export OCN=10.100.198.100
export ONOS_APPS=drivers,openflow,proxyarp
export ONOS_NIC=10.100.198.*
export ONOS_SCENARIOS=$HOME/work/onos-next/tools/test/scenarios
export ONOS_SCENARIOS=$ONOS_ROOT/tools/test/scenarios
export ONOS_USER=ubuntu
export ONOS_GROUP=ubuntu
export ONOS_WEB_PASS=rocks
......