Allow a MAC address to be specified for bridges

This commit is contained in:
Mitchell Hashimoto 2011-12-31 19:13:02 -08:00
parent c48a31d6bd
commit 567c09df21
1 changed files with 8 additions and 4 deletions

View File

@ -55,7 +55,10 @@ module Vagrant
if type == :bridged
options = args[0] || {}
results << { :adapter => 2 }.merge(options)
results << {
:adapter => 2,
:mac => nil
}.merge(options)
end
end
@ -86,7 +89,8 @@ module Vagrant
adapters << {
:adapter => options[:adapter] + 1,
:type => :bridged,
:bridge => options[:bridge]
:bridge => options[:bridge],
:mac_address => options[:mac]
}
end