Class: IbmPowerHmc::SharedEthernetAdapter

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

Overview

SEA information

Constant Summary collapse

ATTRS =
{
  :udid => "UniqueDeviceID",
  :name => "DeviceName",
  :state => "ConfigurationState",
  :large_send => "LargeSend",
  :vlan_id => "PortVLANID",
  :ha_mode => "HighAvailabilityMode",
  :qos_mode => "QualityOfServiceMode",
  :jumbo => "JumboFramesEnabled",
  :queue_size => "QueueSize",
  :primary => "IsPrimary"
}.freeze

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

#deviceObject



317
318
319
320
321
322
323
324
# File 'lib/ibm_power_hmc/schema/uom.rb', line 317

def device
  elem = xml.elements["BackingDeviceChoice/*[1]"]
  begin
    Module.const_get("IbmPowerHmc::#{elem.name}").new(elem) unless elem.nil?
  rescue NameError
    nil
  end
end

#ifaceObject



312
313
314
315
# File 'lib/ibm_power_hmc/schema/uom.rb', line 312

def iface
  elem = xml.elements["IPInterface"]
  IPInterface.new(elem) unless elem.nil?
end

#trunksObject



326
327
328
# File 'lib/ibm_power_hmc/schema/uom.rb', line 326

def trunks
  collection_of("TrunkAdapters", "TrunkAdapter")
end