Skip to content

Commit

Permalink
Add Vagrant file
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWang0909 committed Sep 4, 2018
1 parent abf15bf commit 05d63ba
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Vagrantfile
@@ -0,0 +1,18 @@
$startovs = <<SCRIPT
sudo /usr/local/share/openvswitch/scripts/ovs-ctl --system-id=random start
sudo ovs-vsctl --version
SCRIPT

Vagrant::DEFAULT_SERVER_URL.replace('https://vagrantcloud.com')

Vagrant.configure("2") do |config|
config.vm.box = "floodlight/mininet"
config.vm.box_version = "0.0.1"

config.vm.hostname = "floodlight"
config.vm.network :private_network, type: "dhcp"

config.vm.synced_folder "example/", "/home/vagrant/example/"

config.vm.provision "shell", inline: $startovs
end

0 comments on commit 05d63ba

Please sign in to comment.