Scripts and Vagrantfile to run sFlow on gbp1
[groupbasedpolicy.git] / demos / gbpsfc-env / Vagrantfile
index c435791c20e57bc5b2474a2e359b8b14d428e556..25a17ff2ba3566a5d1ca168d9abc1e2470ea18ce 100644 (file)
@@ -16,14 +16,19 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   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_version = "20151130.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"]