Downcases MAC

This commit is contained in:
Arturs Meinarts
2016-08-08 23:55:49 +02:00
parent 0a36d64c88
commit 34dca0550c

View File

@@ -524,7 +524,7 @@ module VagrantPlugins
end
machine.config.vm.networks.each do |_type, opts|
if opts[:mac] && !(opts[:mac] =~ /\A([0-9A-Fa-f]{2}:){5}([0-9A-Fa-f]{2})\z/)
if opts[:mac] && opts[:mac].downcase! && !(opts[:mac] =~ /\A([0-9a-f]{2}:){5}([0-9a-f]{2})\z/)
errors << "Configured NIC MAC '#{opts[:mac]}' is not in 'xx:xx:xx:xx:xx:xx' format"
end
end