app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_switch_parser.rb
def parse_network(assignment, is_ipv6 = false)
        result = parse(assignment, parent::ParserDictionaryConstants::PHYSICAL_SWITCH_NETWORK)

        result[:ipaddress]   = assignment['address'] unless is_ipv6
        result[:ipv6address] = assignment['address'] if is_ipv6

        result
      end
#
# Parses a switch into a Hash
#
# @param [XClarityClient::Switch] switch - object containing details for the switch
#
# @return [Hash] the switch data as required by the application
#
Parses a switch into a Hash
Parses a switch into a Hash
def parse_network(assignment, is_ipv6 = false)
        result = parse(assignment, parent::ParserDictionaryConstants::PHYSICAL_SWITCH_NETWORK)
        result[:ipaddress]   = assignment['address'] unless is_ipv6
        result[:ipv6address] = assignment['address'] if is_ipv6
        result
      end
def parse_network ( assignment , is_ipv6 = false ) result = parse ( assignment , parent :: ParserDictionaryConstants :: PHYSICAL_SWITCH_NETWORK ) result [ :ipaddress ] = assignment [ 'address' ] unless is_ipv6 result [ :ipv6address ] = assignment [ 'address' ] if is_ipv6 result end
Parses a switch into a Hash
Parses a switch into a Hash
the switch data as required by the application
the switch data as required by the application
Hash
assignment
is_ipv6
object containing details for the switch
object containing details for the switch