added general restart for network - to prevent IP address dropping on interfaces

This commit is contained in:
AJ 2016-08-23 21:02:11 +01:00
parent 1c4e7ee068
commit 2e723ea308
1 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,11 @@ module VagrantPlugins
EOH
end
commands << <<-EOH.gsub(/^ {14}/, '')
# Restart network
service network restart
EOH
comm.sudo(commands.join("\n"))
end
end