Class: Pangea::VIF

Inherits:
XObject show all
Defined in:
lib/pangea/objects.rb

Instance Method Summary collapse

Methods inherited from XObject

#ref_call, #uuid

Constructor Details

#initialize(link, ref) ⇒ VIF

:nodoc:



551
552
553
554
# File 'lib/pangea/objects.rb', line 551

def initialize(link, ref) #:nodoc:
  super(link, ref)
  @proxy_name = 'VIF'
end

Instance Method Details

#deviceObject

xen-api: VIF.get_device



559
560
561
# File 'lib/pangea/objects.rb', line 559

def device
  ref_call :get_device
end

#macObject

xen-api: VIF.get_MAC



566
567
568
# File 'lib/pangea/objects.rb', line 566

def mac
  ref_call :get_MAC
end

#metricsObject

xen-api: VIF.get_metrics



573
574
575
# File 'lib/pangea/objects.rb', line 573

def metrics
  VIFMetrics.new(@link, ref_call(:get_metrics))
end

#vmObject

xen-api: VIF.get_vm



580
581
582
# File 'lib/pangea/objects.rb', line 580

def vm
  VM.new(@link, ref_call(:get_VM))
end