Sha256: 418c589ef906d63444b771570bd589f9ca9e9b13a3694ff11b7e681f282195cf
Contents?: true
Size: 488 Bytes
Versions: 17
Compression:
Stored size: 488 Bytes
Contents
module VagrantPlugins module ProviderLibvirt module Cap class NicMacAddresses def self.nic_mac_addresses(machine) # Vagrant expects a Hash with an index starting at 1 as key # and the mac as uppercase string without colons as value nic_macs = {} machine.provider.mac_addresses.each do |index, mac| nic_macs[index + 1] = mac.upcase.delete(':') end nic_macs end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems