Parent

Class/Module Index [+]

Quicksearch

Fog::Compute::XenServer::VIF

Public Instance Methods

destroy() click to toggle source
# File lib/fog/xenserver/models/compute/vif.rb, line 27
def destroy
  service.destroy_vif reference
end
network() click to toggle source
# File lib/fog/xenserver/models/compute/vif.rb, line 31
def network
  service.networks.get __network
end
save() click to toggle source
# File lib/fog/xenserver/models/compute/vif.rb, line 39
def save
  requires :server
  raise ArgumentError.new('network is required for this operation')              unless attributes[:__network]
  ref = service.create_vif attributes[:server], attributes[:__network]
  merge_attributes service.vifs.get(ref).attributes
end
server() click to toggle source
# File lib/fog/xenserver/models/compute/vif.rb, line 35
def server
  service.servers.get __vm
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.