Class: IbmPowerHmc::VirtualFibreChannelMapping

Inherits:
AbstractNonRest show all
Defined in:
lib/ibm_power_hmc/schema/uom.rb

Overview

VFC mapping information

Constant Summary

Constants inherited from AbstractNonRest

AbstractNonRest::ATTRS

Instance Attribute Summary

Attributes inherited from AbstractNonRest

#xml

Instance Method Summary collapse

Methods inherited from AbstractNonRest

#collection_of, #create_element, #initialize, marshal, #marshal, #singleton, #timestamp, #to_s, #uuid_from_href, #uuids_from_links

Constructor Details

This class inherits a constructor from IbmPowerHmc::AbstractNonRest

Instance Method Details

#clientObject



815
816
817
818
# File 'lib/ibm_power_hmc/schema/uom.rb', line 815

def client
  elem = xml.elements["ClientAdapter"]
  VirtualFibreChannelClientAdapter.new(elem) unless elem.nil?
end

#lpar_uuidObject



810
811
812
813
# File 'lib/ibm_power_hmc/schema/uom.rb', line 810

def lpar_uuid
  href = singleton("AssociatedLogicalPartition", "href")
  uuid_from_href(href) unless href.nil?
end

#portObject



825
826
827
828
# File 'lib/ibm_power_hmc/schema/uom.rb', line 825

def port
  elem = xml.elements["Port"]
  PhysicalFibreChannelPort.new(elem) unless elem.nil?
end

#serverObject



820
821
822
823
# File 'lib/ibm_power_hmc/schema/uom.rb', line 820

def server
  elem = xml.elements["ServerAdapter"]
  VirtualFibreChannelServerAdapter.new(elem) unless elem.nil?
end