From 2e723ea308e199e6ce13996e5b9d65a2f647a925 Mon Sep 17 00:00:00 2001 From: AJ Date: Tue, 23 Aug 2016 21:02:11 +0100 Subject: [PATCH] added general restart for network - to prevent IP address dropping on interfaces --- plugins/guests/redhat/cap/configure_networks.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/guests/redhat/cap/configure_networks.rb b/plugins/guests/redhat/cap/configure_networks.rb index 05b2195fd..d96e27e20 100644 --- a/plugins/guests/redhat/cap/configure_networks.rb +++ b/plugins/guests/redhat/cap/configure_networks.rb @@ -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