Remove the default route hack

This is not required as a multiple default routes
seem not working as expected, hence
removing the hack.
The default route via eth0 should be just preserved
as is.

Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
Bogdan Dobrelya 2015-10-13 12:00:25 +02:00
parent 962baeea5b
commit 4340bd2e93

10
Vagrantfile vendored
View File

@ -88,11 +88,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
v.name = "solar-dev"
end
# FIXME(bogdando) a hack to preserve default vbox route via NAT interface
config.vm.provision "shell", privileged: true,
run: "always",
inline: "eval `route -n | awk '{ if ($8 ==\"eth0\" && $2 == \"10.0.2.2\") print \"ip ro replace default via 10.0.2.2 metric 1\"; }'`"
config.vm.provider :libvirt do |libvirt|
libvirt.driver = 'kvm'
libvirt.memory = MASTER_RAM
@ -144,11 +139,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vbguest.auto_update = false
end
# FIXME(bogdando) a hack to preserve default vbox route via NAT interface
config.vm.provision "shell", privileged: true,
run: "always",
inline: "eval `route -n | awk '{ if ($8 ==\"eth0\" && $2 == \"10.0.2.2\") print \"ip ro replace default via 10.0.2.2 metric 1\"; }'`"
config.vm.provider :virtualbox do |v|
boot_order(v, ['net', 'disk'])
v.customize [