# File lib/fog/xenserver/models/compute/vif.rb, line 27 def destroy connection.destroy_vif reference end
# File lib/fog/xenserver/models/compute/vif.rb, line 31 def network connection.networks.get __network end
# 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 = connection.create_vif attributes[:server], attributes[:__network] merge_attributes connection.vifs.get(ref).attributes end
# File lib/fog/xenserver/models/compute/vif.rb, line 35 def server connection.servers.get __vm end