From 110fcd0eda2d1f9a777536c1c42091f78a24f319 Mon Sep 17 00:00:00 2001 From: "Andrew W. Buchanan" Date: Thu, 2 Oct 2014 15:35:23 -0400 Subject: [PATCH] Fixes issue of vagrant not assigned requested IP address. This was due to the switchover of the network interfaces to ethX format. --- .../coreos-base/oem-vagrant/files/box/configure_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb index e2a4c65d68..3990500dad 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/box/configure_networks.rb @@ -117,7 +117,7 @@ module VagrantPlugins def self.match_by_name(machine) match = {} machine.communicate.tap do |comm| - comm.sudo("ifconfig -a | grep ^en | cut -f1 -d:") do |_, result| + comm.sudo("ifconfig -a | grep '^en\\|^eth' | cut -f1 -d:") do |_, result| result.split("\n").each_with_index do |name, interface| match[interface] = "Name=#{name}" end