Allow a MAC address to be specified for bridges
This commit is contained in:
parent
c48a31d6bd
commit
567c09df21
|
@ -55,7 +55,10 @@ module Vagrant
|
||||||
if type == :bridged
|
if type == :bridged
|
||||||
options = args[0] || {}
|
options = args[0] || {}
|
||||||
|
|
||||||
results << { :adapter => 2 }.merge(options)
|
results << {
|
||||||
|
:adapter => 2,
|
||||||
|
:mac => nil
|
||||||
|
}.merge(options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -84,9 +87,10 @@ module Vagrant
|
||||||
|
|
||||||
networks.each do |options|
|
networks.each do |options|
|
||||||
adapters << {
|
adapters << {
|
||||||
:adapter => options[:adapter] + 1,
|
:adapter => options[:adapter] + 1,
|
||||||
:type => :bridged,
|
:type => :bridged,
|
||||||
:bridge => options[:bridge]
|
:bridge => options[:bridge],
|
||||||
|
:mac_address => options[:mac]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue