From abd4185565b71c9833cb713461bd22d911fdad87 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 11 Apr 2014 16:50:42 -0700 Subject: [PATCH] guests/freebsd: fix network name for vtnet --- plugins/guests/freebsd/cap/configure_networks.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/guests/freebsd/cap/configure_networks.rb b/plugins/guests/freebsd/cap/configure_networks.rb index aa299c4aa..aa2daa9fe 100644 --- a/plugins/guests/freebsd/cap/configure_networks.rb +++ b/plugins/guests/freebsd/cap/configure_networks.rb @@ -19,8 +19,8 @@ module VagrantPlugins ifname = "" machine.communicate.execute(command) do |type, data| result << data if type == :stdout - if result.split(/\n/).any?{|i| i.match(/vio*/)} - ifname = "vio#{network[:interface]}" + if result.split(/\n/).any?{|i| i.match(/vtnet*/)} + ifname = "vtnet#{network[:interface]}" else ifname = "em#{network[:interface]}" end