app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_server_parser.rb
#
# parse a node object to a hash with physical servers data
#
# @param [Hash] node_hash - hash containing physical server raw data
# @param [Hash] rack - parsed physical rack data
# @param [Hash] chassis - parsed physical chassis data
#
# @return [Hash] containing the physical server information
#
parse a node object to a hash with physical servers data
parse a node object to a hash with physical servers data
def parse_management_device(node)
        result = parse(node, parent::ParserDictionaryConstants::MANAGEMENT_DEVICE)
        result[:device_type] = "management"
        result[:network][:ipv6address] = node.ipv6Addresses.nil? ? node.ipv6Addresses : node.ipv6Addresses.join(", ")
        result
      end
def parse_management_device ( node ) result = parse ( node , parent :: ParserDictionaryConstants :: MANAGEMENT_DEVICE ) result [ :device_type ] = "management" result [ :network ] [ :ipv6address ] = node . ipv6Addresses . nil? ? node . ipv6Addresses : node . ipv6Addresses . join ( ", " ) result end
parse a node object to a hash with physical servers data
parse a node object to a hash with physical servers data
containing the physical server information
containing the physical server information
Hash
node
parsed physical chassis data
parsed physical chassis data