Only list bridged interfaces that are up [GH-701]

This commit is contained in:
withnail 2012-02-01 23:36:15 +00:00 committed by Mitchell Hashimoto
parent e8204c6736
commit 77c1b7c9e2
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@
- Greatly improved FreeBSD guest and host support. [GH-695]
- Fix instability with RedHat guests and host only and bridged networks.
[GH-698]
- When using bridged networking, only list the network interfaces
that are up as choices. [GH-701]
## 0.9.4 (January 28, 2012)

View File

@ -318,7 +318,9 @@ module Vagrant
end
def bridged_adapter(config)
# Find the bridged interfaces that are available
bridgedifs = @env[:vm].driver.read_bridged_interfaces
bridgedifs.delete_if { |interface| interface[:status] == "Down" }
chosen_bridge = nil
if bridgedifs.length == 1