Convert DataChangeListeners to DataTreeChangeListeners
[groupbasedpolicy.git] / demos / gbpsfc-env / Vagrantfile
index 7eab55114678e7131dbdd12e69b5a2a2e8c41161..66a96354e969b9d09ef8ba98469af9e5472c5368 100644 (file)
@@ -1,4 +1,3 @@
-
 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
 VAGRANTFILE_API_VERSION = "2"
 
@@ -7,30 +6,32 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   config.vm.provider "virtualbox" do |vb|
     vb.memory = "512"
   end
-  if Vagrant.has_plugin?("vagrant-cachier")
-    config.cache.scope = :box
-  end
-  # run our bootstrapping for the system
-  config.vm.provision 'shell', path: 'bootstrap.sh', :args => odl
-
+  # ubuntu/trusty64 + bootstrap.sh = tomas-c/gbpsfc-trusty64
+  # config.vm.provision 'shell', path: 'bootstrap.sh', :args => odl
   num_nodes = (ENV['NUM_NODES'] || 1).to_i
 
   # ip configuration
   ip_base = (ENV['SUBNET'] || "192.168.50.")
   ips = num_nodes.times.collect { |n| ip_base + "#{n+70}" }
 
+  ip_base_sflow = "192.168.53."
+  ips_sflow = num_nodes.times.collect { |n| ip_base_sflow + "#{n+70}" }
+
   num_nodes.times do |n|
     config.vm.define "gbpsfc#{n+1}", autostart: true do |compute|
       vm_ip = ips[n]
+      vm_ip_sflow = ips_sflow[n]
       vm_index = n+1
-      compute.vm.box = "ubuntu/trusty64"
+      compute.vm.box = "tomas-c/gbpsfc-trusty64"
+      compute.vm.box_version = "1.0.0"
       compute.vm.hostname = "gbpsfc#{vm_index}"
       compute.vm.network "private_network", ip: "#{vm_ip}"
+      compute.vm.network "private_network", ip: "#{vm_ip_sflow}"
       compute.vm.provider :virtualbox do |vb|
-        vb.memory = 512
-        vb.customize ["modifyvm", :id, "--ioapic", "on"]      
+        vb.memory = 2048
+        vb.customize ["modifyvm", :id, "--ioapic", "on"]
         vb.cpus = 1
       end
     end
   end
-end
+end
\ No newline at end of file