Only list bridged interfaces that are up [GH-701]
This commit is contained in:
parent
e8204c6736
commit
77c1b7c9e2
|
@ -8,6 +8,8 @@
|
||||||
- Greatly improved FreeBSD guest and host support. [GH-695]
|
- Greatly improved FreeBSD guest and host support. [GH-695]
|
||||||
- Fix instability with RedHat guests and host only and bridged networks.
|
- Fix instability with RedHat guests and host only and bridged networks.
|
||||||
[GH-698]
|
[GH-698]
|
||||||
|
- When using bridged networking, only list the network interfaces
|
||||||
|
that are up as choices. [GH-701]
|
||||||
|
|
||||||
## 0.9.4 (January 28, 2012)
|
## 0.9.4 (January 28, 2012)
|
||||||
|
|
||||||
|
|
|
@ -318,7 +318,9 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
def bridged_adapter(config)
|
def bridged_adapter(config)
|
||||||
|
# Find the bridged interfaces that are available
|
||||||
bridgedifs = @env[:vm].driver.read_bridged_interfaces
|
bridgedifs = @env[:vm].driver.read_bridged_interfaces
|
||||||
|
bridgedifs.delete_if { |interface| interface[:status] == "Down" }
|
||||||
|
|
||||||
chosen_bridge = nil
|
chosen_bridge = nil
|
||||||
if bridgedifs.length == 1
|
if bridgedifs.length == 1
|
||||||
|
|
Loading…
Reference in New Issue