lib/fog/xenserver/requests/compute/create_vif.rb in fog-1.22.0 vs lib/fog/xenserver/requests/compute/create_vif.rb in fog-1.22.1
- old
+ new
@@ -1,11 +1,9 @@
module Fog
module Compute
class XenServer
-
class Real
-
def create_vif( vm_ref, network_ref, device = -1)
raise ArgumentError.new('Invalid vm_ref') if vm_ref.nil?
raise ArgumentError.new('Invalid network_ref') if network_ref.nil?
vm_ref = vm_ref.reference if vm_ref.kind_of? Fog::Model
network_ref = network_ref.reference if network_ref.kind_of? Fog::Model
@@ -43,15 +41,12 @@
conf
end
end
class Mock
-
def create_vif( vm_ref, network_ref )
Fog::Mock.not_implemented
end
-
end
-
end
end
end