Sha256: 137eeb8f1576ee3fee2ca2f2451017130687583cd421a35f4bea96a6b3815c8b

Contents?: true

Size: 383 Bytes

Versions: 14

Compression:

Stored size: 383 Bytes

Contents

# vim: ai ts=2 sts=2 et sw=2 ft=ruby
module VagrantPlugins
  module OVirtProvider
    module Cap
      module NicMacAddresses
        def self.nic_mac_addresses(machine)
          ovirt = OVirtProvider.ovirt_connection
          interfaces = ovirt.list_vm_interfaces(machine.id.to_s)
          Hash[interfaces.map{ |i| [i[:name], i[:mac]] }]
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
vagrant-ovirt4-1.2.0 lib/vagrant-ovirt4/cap/nic_mac_addresses.rb
vagrant-ovirt4-1.1.0 lib/vagrant-ovirt4/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.9.3 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.9.2 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.9.1 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.9.0 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.8.2 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.7.1 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.7.0 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.6.2 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.6.1 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.6.0 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.5.0 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb
vagrant-ovirt3-1.4.0 lib/vagrant-ovirt3/cap/nic_mac_addresses.rb