Sha256: 1d74b5977ce1048bc9c0750c9463dbbbd79916aab472dedbb9a3b0354312b0c2

Contents?: true

Size: 558 Bytes

Versions: 13

Compression:

Stored size: 558 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class V4
        class Real
          def list_vm_interfaces(vm_id)
            client.system_service.vms_service.vm_service(vm_id).nics_service.list.map { |ovirt_obj| ovirt_attrs ovirt_obj }
          end
        end
        class Mock
          def list_vm_interfaces(_vm_id)
            xml = read_xml "nics.xml"
            Nokogiri::XML(xml).xpath("/nics/nic").map do |nic|
              ovirt_attrs OvirtSDK4::Reader.read(nic.to_s)
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
fog-ovirt-1.1.6 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.1.5 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.1.4 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.1.3 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.1.2 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.1.1 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.1.0 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.0.4 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.0.3 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb
fog-ovirt-1.0.2 lib/fog/ovirt/requests/compute/v4/list_vm_interfaces.rb