Merge pull request #3874 from gpurkins/sol11-networkfix

guests/solaris11: Added conditional for temporary interfaces
This commit is contained in:
Mitchell Hashimoto 2014-05-22 10:22:30 -07:00
commit aa70a816a5
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ module VagrantPlugins
machine.communicate.execute("#{su_cmd} ipadm create-addr -T static -a #{network[:ip]}/#{cidr} #{device}/v4")
elsif network[:type].to_sym == :dhcp
#machine.communicate.execute("#{ifconfig_cmd} dhcp start")
if machine.communicate.test("ipadm show-if -o all | grep #{device} | tr -s ' ' | cut -d ' ' -f 6 | grep '4\|6'")
machine.communicate.execute("#{su_cmd} ipadm create-addr -T addrconf #{device}/v4")
end
end
@ -30,3 +31,4 @@ module VagrantPlugins
end
end
end
end