summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2016-02-10 10:20:07 -0500
committerGerrit Code Review <gerrit@fd.io>2016-02-10 22:00:23 +0000
commitea8d1af7f75565cee845ce0b4672d64bc7cb676f (patch)
treefed49925bbc19809d3cbc6d06dc605b972d40ec5
parentd5cf146cd2e2959162a6e15f4561869638087756 (diff)
Add another VM for wireshark to monitor the vpp1<-->vpp2 internal network.
Change-Id: Iad350ac6c90ce372d6bde5e3fab126c524e816c1 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
-rw-r--r--vagrant-demo/Vagrantfile32
1 files changed, 26 insertions, 6 deletions
diff --git a/vagrant-demo/Vagrantfile b/vagrant-demo/Vagrantfile
index 88a94b123..2892b954d 100644
--- a/vagrant-demo/Vagrantfile
+++ b/vagrant-demo/Vagrantfile
@@ -6,12 +6,13 @@
#
# Note: VirtualBox is currently the only provier supported for the demo.
#
-# [ host1 VM ] <== Internal Network "host1-vpp1" ==> [ vpp1 VM ]
-# [ vpp1 VM ] <== Internal Network "vpp1-vpp2" ==> [ vpp2 VM ]
-# [ vpp1 VM ] <-- Private Network 192.168.10.x -+-> [ vbd VM ]
-# (Mgmt network) |
-# +-> [ vpp2 VM ]
-# [ vpp2 VM ] <== Internal Network "host2-vpp2" ==> [ host2 VM ]
+# [ host1 VM ] <=== Internal Network "host1-vpp1" ===> [ vpp1 VM ]
+# [ vpp1 VM ] <==+ Internal Network "vpp1-vpp2" ===> [ vpp2 VM ]
+# [ jaws VM ] <==+
+# [ vpp1 VM ] <--- Private Network 192.168.10.x -+--> [ vbd VM ]
+# (Mgmt network) |
+# +--> [ vpp2 VM ]
+# [ vpp2 VM ] <=== Internal Network "host2-vpp2" ===> [ host2 VM ]
#
Vagrant.configure(2) do |config|
@@ -188,4 +189,23 @@ end
s.args = ["host2", "172.16.15.15/24"]
end
end
+
+ # Define jaws VM (for wireshark) connected to the vpp1 <-> vpp2
+ # internal network.
+ #
+ # [ vpp1 VM ] <==+ Internal Network "vpp1-vpp2" ===> [ vpp2 VM ]
+ # [ jaws VM ] <==+
+ #
+ config.vm.define :jaws do |jaws|
+ jaws.vm.box = "puppetlabs/ubuntu-14.04-64-nocm"
+ jaws.vm.provider "virtualbox" do |vb|
+ vb.customize ["modifyvm", :id, "--nic2", "intnet"]
+ vb.customize ["modifyvm", :id, "--intnet2", "vpp1-vpp2"]
+ vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
+ end
+ jaws.vm.provision "shell" do |s|
+ s.path = "bootstrap-host.ubuntu1404.sh"
+ s.args = ["jaws", "172.16.15.15/24"]
+ end
+ end
end