allow specification of mac in network command

This commit is contained in:
Vishvananda Ishaya 2011-02-03 19:55:55 +00:00 committed by Mitchell Hashimoto
parent 84b4638bda
commit 211f9d46af
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,9 @@ module Vagrant
adapter.enabled = true
adapter.attachment_type = :host_only
adapter.host_interface = network_name(network_options)
if network_options[:mac]
adapter.mac = network_options[:mac]
end
adapter.save
end
end

View File

@ -55,6 +55,7 @@ module Vagrant
:ip => ip,
:netmask => "255.255.255.0",
:adapter => 1,
:mac = nil,
:name => nil
}.merge(options || {})