Fix new-style Network Device Naming on CentOS7+VMwarefusion
This commit is contained in:
parent
919aa70c5d
commit
55a90445cd
|
@ -26,7 +26,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
interface_names = networks.map do |network|
|
interface_names = networks.map do |network|
|
||||||
"eth#{network[:interface]}"
|
"#{interface_names[network[:interface]]}"
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
machine.communicate.sudo("/usr/sbin/biosdevname -d | grep Kernel | cut -f2 -d: | sed -e 's/ //;'") do |_, result|
|
machine.communicate.sudo("/usr/sbin/biosdevname -d | grep Kernel | cut -f2 -d: | sed -e 's/ //;'") do |_, result|
|
||||||
|
|
Loading…
Reference in New Issue