Restart network after reconfiguration

Fixes #7119.
This commit is contained in:
Lars Christensen 2016-03-08 16:19:39 +01:00
parent c6c9942e2e
commit a6565199ff
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ module VagrantPlugins
machine.communicate.upload(temp.path, "/tmp/vagrant_network")
machine.communicate.sudo("mv /tmp/vagrant_network /etc/netctl/#{network[:device]}")
machine.communicate.sudo("ip link set #{network[:device]} down && netctl start #{network[:device]} && netctl enable #{network[:device]}")
machine.communicate.sudo("ip link set #{network[:device]} down && netctl restart #{network[:device]} && netctl enable #{network[:device]}")
end
end
end