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



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

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

#lpar_uuidObject



808
809
810
811
# File 'lib/ibm_power_hmc/schema/uom.rb', line 808

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

#portObject



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

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

#serverObject



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

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