From 652b4dac55e901ff8905789cf8d75f0801e72df1 Mon Sep 17 00:00:00 2001 From: Joshua Harshman Date: Fri, 27 Nov 2015 13:13:44 -0800 Subject: [PATCH] Vagrant Issue #6608 Refactor and repair regular expression attempting to match present interfaces. The refactored regular expression will match on enp* ens* eth* variants. --- plugins/guests/coreos/cap/configure_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/coreos/cap/configure_networks.rb b/plugins/guests/coreos/cap/configure_networks.rb index c92b2cd90..819f6f818 100644 --- a/plugins/guests/coreos/cap/configure_networks.rb +++ b/plugins/guests/coreos/cap/configure_networks.rb @@ -15,7 +15,7 @@ module VagrantPlugins # Read network interface names interfaces = [] - comm.sudo("ifconfig | grep 'enp0\\|ens' | cut -f1 -d:") do |_, result| + comm.sudo("ifconfig | grep '(e[n,t][h,s,p][[:digit:]]([a-z][[:digit:]])?' | cut -f1 -d:") do |_, result| interfaces = result.split("\n") end