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



817
818
819
820
# File 'lib/ibm_power_hmc/schema/uom.rb', line 817

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

#lpar_uuidObject



812
813
814
815
# File 'lib/ibm_power_hmc/schema/uom.rb', line 812

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

#portObject



827
828
829
830
# File 'lib/ibm_power_hmc/schema/uom.rb', line 827

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

#serverObject



822
823
824
825
# File 'lib/ibm_power_hmc/schema/uom.rb', line 822

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