From e998d6b0f4da3edc48505481db9c12b2f9c2e34c Mon Sep 17 00:00:00 2001 From: Altex Date: Sat, 5 Mar 2016 22:25:59 +0300 Subject: [PATCH] Fixed centos 7 networks if using more than 3 ethernet adapters. --- plugins/guests/fedora/cap/configure_networks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/guests/fedora/cap/configure_networks.rb b/plugins/guests/fedora/cap/configure_networks.rb index b95d0bdb7..5ea1fda9f 100644 --- a/plugins/guests/fedora/cap/configure_networks.rb +++ b/plugins/guests/fedora/cap/configure_networks.rb @@ -25,7 +25,7 @@ module VagrantPlugins end if virtual - machine.communicate.sudo("ls /sys/class/net | egrep -v lo\\|docker") do |_, result| + machine.communicate.sudo("ls -Sv /sys/class/net | egrep -v lo\\|docker") do |_, result| interface_names = result.split("\n") end