summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAreli Fuss <af732p@att.com>2017-09-28 14:24:53 +0300
committerAreli Fuss <af732p@att.com>2017-09-28 14:24:53 +0300
commitf57e9e70201722dda6c4dfb1670c12f204f6a54e (patch)
tree96880c8f99e9f9b259f0d4e74579aec2c424b5c2
parent4373810132c59df7bf94607e0406a838332036e8 (diff)
Replace Networking settings
Replace the networking seettings to support ports access without port forwarding Change-Id: I3781aa65dc5604192ceecc3a7bb83b7b9e6b43c4 Issue-Id: INT-214 Signed-off-by: Areli Fuss <af732p@att.com>
-rw-r--r--bootstrap/vagrant-onap/Vagrantfile17
1 files changed, 12 insertions, 5 deletions
diff --git a/bootstrap/vagrant-onap/Vagrantfile b/bootstrap/vagrant-onap/Vagrantfile
index 800ed992e..014f2fda0 100644
--- a/bootstrap/vagrant-onap/Vagrantfile
+++ b/bootstrap/vagrant-onap/Vagrantfile
@@ -235,11 +235,10 @@ if File.exist?(vd_conf)
end
#Set network interface
+net_interface = 'vboxnet0'
is_windows = Gem.win_platform?
if is_windows
net_interface = 'VirtualBox Host-Only Ethernet Adapter #2'
-else
- net_interface = 'vboxnet0'
end
puts "[INFO] Net interface: #{net_interface}"
@@ -309,6 +308,7 @@ Vagrant.configure("2") do |config|
raise 'vagrant-libvirt was installed but it requires to execute again'
end
end
+
if provider == :openstack
config.ssh.username = 'ubuntu'
if not Vagrant.has_plugin?('vagrant-openstack-provider')
@@ -369,7 +369,15 @@ Vagrant.configure("2") do |config|
nodeconfig.vm.synced_folder '~/.m2', '/root/.m2/', create: true
end
# Set Network
- nodeconfig.vm.network :private_network, ip: node[:ips][1]
+ nodeconfig.vm.network :private_network,
+ :adapter => 2,
+ :name => net_interface,
+ :ip => node[:ips][0]
+
+ nodeconfig.vm.network :private_network,
+ :adapter => 3,
+ :ip => node[:ips][1],
+ :type => :static
# Specific settings:
@@ -386,8 +394,7 @@ Vagrant.configure("2") do |config|
v.storage :file, path: sdc_volume, bus: 'sata', device: 'vdb', size: '2G'
end
end
-
-
+
if node[:name].include? "testing"
nodeconfig.vm.synced_folder './tests', '/var/onap_tests/', create: true
test_suite = ENV.fetch('TEST_SUITE', '*')