restart NetworkManager and network for CentOS 7.1

This commit is contained in:
linyows 2015-05-13 18:07:32 +09:00
parent 261ef836e0
commit c1c39beaab
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@ module VagrantPlugins
require File.expand_path("../../../fedora/cap/configure_networks", __FILE__)
::VagrantPlugins::GuestFedora::Cap::ConfigureNetworks.
configure_networks(machine, networks)
machine.communicate.sudo("systemctl restart NetworkManager")
machine.communicate.sudo("systemctl restart network")
end
def self.configure_networks_default(machine, networks)