class Fog::Compute::Ovirt::Interfaces

Attributes

vm[RW]

Public Instance Methods

all(filters = {}) click to toggle source
# File lib/fog/ovirt/models/compute/interfaces.rb, line 12
def all(filters = {})
  requires :vm
  if vm.is_a? Fog::Compute::Ovirt::Server
    load service.list_vm_interfaces(vm.id)
  elsif vm.is_a? Fog::Compute::Ovirt::Template
    load service.list_template_interfaces(vm.id)
  else
    raise 'interfaces should have vm or template'
  end
end
get(id) click to toggle source
# File lib/fog/ovirt/models/compute/interfaces.rb, line 23
def get(id)
  new service.get_interface(id)
end