mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Downcases MAC
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user