[DRE-commits] [vagrant-libvirt] 09/163: Accept other MAC address formats.

Antonio Terceiro terceiro at moszumanska.debian.org
Sun Apr 24 13:56:57 UTC 2016


This is an automated email from the git hooks/post-receive script.

terceiro pushed a commit to annotated tag 0.0.26
in repository vagrant-libvirt.

commit 29d2f19c06d34be72c2fda93528e56c3d66f63b7
Author: Joe Julian <me at joejulian.name>
Date:   Wed Jul 16 13:31:49 2014 -0700

    Accept other MAC address formats.
    
    This will accept formats like 00006C2830d5 which other backends accept, as well as any other variant that  contains hex digits, such as Cisco's 0000.6C28.30d5.
    
    Bug: 208
---
 lib/vagrant-libvirt/action/create_network_interfaces.rb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/vagrant-libvirt/action/create_network_interfaces.rb b/lib/vagrant-libvirt/action/create_network_interfaces.rb
index bedafb1..047659d 100644
--- a/lib/vagrant-libvirt/action/create_network_interfaces.rb
+++ b/lib/vagrant-libvirt/action/create_network_interfaces.rb
@@ -81,6 +81,7 @@ module VagrantPlugins
             message = "Creating network interface eth#{@iface_number}"
             message << " connected to network #{@network_name}."
             if @mac
+              @mac = mac.scan(/(\h{2})/).join(':')
               message << " Using MAC address: #{@mac}"
             end
             @logger.info(message)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/vagrant-libvirt.git



More information about the Pkg-ruby-extras-commits mailing list