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



687
688
689
690
# File 'lib/ibm_power_hmc/schema/uom.rb', line 687

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

#lpar_uuidObject



682
683
684
685
# File 'lib/ibm_power_hmc/schema/uom.rb', line 682

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

#portObject



697
698
699
700
# File 'lib/ibm_power_hmc/schema/uom.rb', line 697

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

#serverObject



692
693
694
695
# File 'lib/ibm_power_hmc/schema/uom.rb', line 692

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