Class: IbmPowerHmc::SharedEthernetAdapter
- Inherits:
-
AbstractNonRest
- Object
- AbstractNonRest
- IbmPowerHmc::SharedEthernetAdapter
- 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
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
#device ⇒ Object
443 444 445 446 447 448 449 450 |
# File 'lib/ibm_power_hmc/schema/uom.rb', line 443 def device elem = xml.elements["BackingDeviceChoice/*[1]"] begin Module.const_get("IbmPowerHmc::#{elem.name}").new(elem) unless elem.nil? rescue NameError nil end end |
#iface ⇒ Object
438 439 440 441 |
# File 'lib/ibm_power_hmc/schema/uom.rb', line 438 def iface elem = xml.elements["IPInterface"] IPInterface.new(elem) unless elem.nil? end |
#trunks ⇒ Object
452 453 454 |
# File 'lib/ibm_power_hmc/schema/uom.rb', line 452 def trunks collection_of("TrunkAdapters", "TrunkAdapter") end |