From 4abe17fd746b0cb69d45041ae2909cd7e7e3b32f Mon Sep 17 00:00:00 2001 From: douglasgabriel Date: Tue, 29 May 2018 16:35:35 -0300 Subject: [PATCH] Parsing the connection b/w ports --- .../parser/physical_network_ports_parser.rb | 81 +++++++++++++++++-- .../physical_infra_manager/refresh_parser.rb | 14 ++++ .../refresh_parser_spec.rb | 2 +- .../physical_infra_manager/refresher_spec.rb | 9 +++ .../physical_infra_manager/full_refresh.yml | 2 +- .../physical_infra_manager/mock_switches.yml | 4 +- 6 files changed, 103 insertions(+), 9 deletions(-) diff --git a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb index 956e4cbcee..2a087c2c0e 100644 --- a/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb +++ b/app/models/manageiq/providers/lenovo/physical_infra_manager/parser/physical_network_ports_parser.rb @@ -22,7 +22,59 @@ def parse_network_device_ports(ports) # it ports parsed # def parse_physical_switch_ports(physical_switch) - physical_switch.ports&.map { |port| parse_switch_port(port) } + physical_switch.ports&.map { |port| parse_switch_port(port, physical_switch) } + end + + # + # Binds the connected ports + # + # @param [Array] ports - parsed ports to be bind + # + def bind_network_ports!(ports) + ports.each do |origin_port| + connected_port = ports.find { |destination_port| connected_port?(origin_port, destination_port) } + origin_port[:connected_port_uid] = connected_port[:uid_ems] if connected_port + end + end + + # + # Selects all the physical network port from physical servers list. + # + # @param [Array] physical_servers - list of physical servers that must + # have its ports selecteds. + # + # @return [Array] the list of physical network ports + # + def extract_physical_servers_ports(physical_servers) + ports = [] + + physical_servers.each do |server| + network_devices = server[:computer_system][:hardware][:guest_devices] + + network_devices.each do |device| + ports.concat(device[:physical_network_ports]) if device[:physical_network_ports].present? + end + end + + ports + end + + # + # Selects all the physical network port from physical switches list. + # + # @param [Array] physical_switches - list of physical switches that must + # have its ports selecteds. + # + # @return [Array] the list of physical network ports + # + def extract_physical_switches_ports(physical_switches) + ports = [] + + physical_switches.each do |switch| + ports.concat(switch[:physical_network_ports]) if switch[:physical_network_ports].present? + end + + ports end private @@ -34,18 +86,20 @@ def parse_physical_server_ports(port) parsed_physical_port = parse_physical_port(physical_port) logical_ports = physical_port["logicalPorts"] parsed_logical_port = parse_logical_port(logical_ports[0]) - parsed_logical_port[:uid_ems] = mount_uuid(port, physical_port['physicalPortIndex']) + parsed_logical_port[:uid_ems] = mount_uuid_server_port(port, physical_port['physicalPortIndex']) parsed_logical_port.merge!(parsed_physical_port) + parsed_logical_port end end - def parse_switch_port(port) + def parse_switch_port(port, physical_switch) result = parse(port, parent::ParserDictionaryConstants::PHYSICAL_SWITCH_PORT) result.merge( :port_name => port["portName"].presence || port["port"], :port_type => "physical_port", - :vlan_enabled => port["PVID"].present? + :vlan_enabled => port["PVID"].present?, + :uid_ems => mount_uuid_switch_port(port, physical_switch) ) end @@ -67,9 +121,26 @@ def format_mac_address(mac_address) mac_address.scan(/\w{2}/).join(":") end - def mount_uuid(device, port_number = nil) + def mount_uuid_server_port(device, port_number = nil) (device["uuid"] || "#{device['pciBusNumber']}#{device['pciDeviceNumber']}") + port_number.to_s end + + def mount_uuid_switch_port(port, physical_switch) + physical_switch.uuid + port["interfaceIndex"] + end + + # + # Verifies if two ports are connected + # + # @return [Boolean] true if they are connected + # + def connected_port?(origin_port, destination_port) + return origin_port[:mac_address] == destination_port[:peer_mac_address] if origin_port[:mac_address].present? + + return origin_port[:peer_mac_address] == destination_port[:mac_address] if origin_port[:peer_mac_address].present? + + false + end end end end diff --git a/app/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser.rb b/app/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser.rb index 50b27793f2..0b8ce7040f 100644 --- a/app/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser.rb +++ b/app/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser.rb @@ -27,6 +27,8 @@ def ems_inv_to_hashes inventory[:physical_switches] = get_physical_switches inventory[:customization_scripts] = get_config_patterns + bind_network_ports(inventory) + $log.info("#{log_header}...Complete") inventory @@ -139,6 +141,18 @@ def get_config_patterns config_patterns = @connection.discover_config_pattern config_patterns.map { |config_pattern| @parser.parse_config_pattern(config_pattern) } end + + def bind_network_ports(inventory) + physical_servers = inventory[:physical_servers] + physical_switches = inventory[:physical_switches] + + ports = [] + + ports.concat(PhysicalInfraManager::Parser::PhysicalNetworkPortsParser.extract_physical_servers_ports(physical_servers)) + ports.concat(PhysicalInfraManager::Parser::PhysicalNetworkPortsParser.extract_physical_switches_ports(physical_switches)) + + PhysicalInfraManager::Parser::PhysicalNetworkPortsParser.bind_network_ports!(ports) + end end end # rubocop:enable Naming/AccessorMethodName diff --git a/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser_spec.rb b/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser_spec.rb index cd8c8aad61..73e5f729fb 100644 --- a/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser_spec.rb +++ b/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresh_parser_spec.rb @@ -62,7 +62,7 @@ switch = @result[:physical_switches].first port = switch[:physical_network_ports].first - expect(port[:peer_mac_address]).to eq("7c:d3:0a:e6:47:51") + expect(port[:peer_mac_address]).to eq("5C:F3:FC:7F:0B:50") expect(port[:port_type]).to eq("physical_port") expect(port[:vlan_enabled]).to eq(true) expect(port[:vlan_key]).to eq("\"Lenovo-Network-VLAN546\"") diff --git a/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb b/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb index 85ba71109e..b93df38765 100644 --- a/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb +++ b/spec/models/manageiq/providers/lenovo/physical_infra_manager/refresher_spec.rb @@ -82,6 +82,7 @@ assert_specific_storage assert_guest_table_contents assert_physical_network_ports_table_content + assert_physical_network_ports_connection end end @@ -145,4 +146,12 @@ def assert_physical_network_ports_table_content expect(port2.port_name).to eq("Physical Port 2") expect(port2.mac_address).to eq("00:0A:F7:25:67:39") end + + def assert_physical_network_ports_connection + port1 = PhysicalNetworkPort.find_by(:mac_address => "00:0A:F7:25:67:39") + port2 = PhysicalNetworkPort.find_by(:peer_mac_address => "00:0A:F7:25:67:39") + + expect(port1.connected_port).to eq(port2) + expect(port2.connected_port).to eq(port1) + end end diff --git a/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/full_refresh.yml b/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/full_refresh.yml index 26f288a676..7067a8a5ce 100644 --- a/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/full_refresh.yml +++ b/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/full_refresh.yml @@ -1329,7 +1329,7 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"switchList":[{"name":"ThinkAgile-VX-NE1032-SW03","uuid":"00000000000010008000A48CDB984B00","accessState":"Online","overallHealthState":"Non-Critical","type":"Rackswitch","hostname":"ThinkAgile-VX-NE1032-SW03","description":"32*10 GbE SFP+","dnsHostnames":[],"domainName":"","FRU":"","fruSerialNumber":"","ipv4Addresses":["10.243.4.79"],"ipv6Addresses":["fe80:0:0:0:a68c:dbff:fe98:4b00"],"macAddresses":["A4:8C:DB:98:4B:00"],"machineType":"7159","manufacturer":"LNVO","manufacturerId":"","model":"HD1","partNumber":"00YL949 ","posID":"","powerState":"On","productId":"","productName":"Lenovo ThinkSystem NE1032 RackSwitch","protectedMode":"Unknown","serialNumber":"Y056DH79E046","slots":[],"stackMode":"none","vpdID":"","backedBy":"real","cmmDisplayName":"ThinkAgile-VX-NE1032-SW03","cmmHealthState":"Non-Critical","dataHandle":1517948378929,"elapsedTimeMillisecs":"3151","errorFields":[],"firmware":[{"name":"Uboot","date":"","type":"Boot ROM","build":"","version":"10.4.2.0","role":"","status":"N/A"},{"name":"Active Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Active"},{"name":"Standby Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Non-Active"}],"ipInterfaces":[{"name":"unknown","label":"unknown","IPv4enabled":false,"IPv4DHCPmode":"UNKNOWN","IPv6enabled":false,"IPv6DHCPenabled":false,"IPv4assignments":[{"id":0,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"10.243.4.79","type":"UNKNOWN"}],"IPv6assignments":[{"id":1,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"fe80:0:0:0:a68c:dbff:fe98:4b00","type":"UNKNOWN"}],"IPv6statelessEnabled":false,"IPv6staticEnabled":false}],"leds":[],"ntpPushEnabled":false,"ntpPushFrequency":0,"parent":{"uuid":null,"uri":null},"portDataSetTimestamp":"03:19:35","uri":"switches/00000000000010008000A48CDB984B00","userDescription":"","userDefinedName":"ThinkAgile-VX-NE1032-SW03","securityDescriptor":{"managedAuthSupported":false,"publicAccess":false,"uri":"switches/00000000000010008000a48cdb984b00","roleGroups":[],"managedAuthEnabled":false},"applyPending":"No","contact":"","cpuUtilization":"N/A","entitleSerialNumber":"MM41940","fans":[{"fanName":"Fan 1","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 2","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 3","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 4","fanSpeed":"1848 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 5","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 6","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"}],"height":1,"location":{"lowestRackUnit":0,"contact":"","location":"","rack":"","room":""},"manufacturingDate":"3817 (WWYY)","memoryUtilization":"","mgmtProcIPaddress":"10.243.4.79","panicDump":"Yes","ports":[{"configuredStatus":"up","interfaceIndex":"410001","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e6:47:51","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/1","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410002","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/2","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410003","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e6:47:19","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/3","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410004","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/4","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410005","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:23:f1","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/5","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410006","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/6","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410007","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:2d:c9","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/7","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410008","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/8","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410009","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/9","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410010","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/10","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410011","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/11","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410012","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/12","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410013","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/13","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410014","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/14","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410015","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/15","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410016","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/16","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410017","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/17","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410018","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/18","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410019","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/19","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410020","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/20","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410021","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/21","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410022","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/22","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410023","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/23","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410024","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/24","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410025","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/25","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410026","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/26","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410027","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/27","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410028","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/28","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410029","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/29","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410030","operationalStatus":"up","peerMacAddress":"a4:8c:db:b3:40:00","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/30","PVID":"\"ESXi-Mgmt-Network-VLAN20\""},{"configuredStatus":"up","interfaceIndex":"410031","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:20","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/31","PVID":"\"ISL-Network-VLAN2001\""},{"configuredStatus":"up","interfaceIndex":"410032","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:21","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/32","PVID":"\"ISL-Network-VLAN2001\""}],"powerSupply":"Power Supply 1: on;Power Supply 2: on.","resetReason":"1","savePending":"Yes","stackRole":"none","sysObjectID":"1.3.6.1.4.1.19046.1.7.32","temperatureSensors":[{"sensorName":" HotSpot2 Temp","sensorState":" 34 C"},{"sensorName":" HotSpot1 Temp","sensorState":" 37 C"},{"sensorName":" MAC Temp","sensorState":" 37 C"},{"sensorName":" Exhaust Temp","sensorState":" 34 C"},{"sensorName":"Inlet Temp","sensorState":" 31 C"}],"upTime":"19 days, 19:03:29","isConnectionTrusted":"true","OS":"CNOS"}]}' + string: '{"switchList":[{"name":"ThinkAgile-VX-NE1032-SW03","uuid":"00000000000010008000A48CDB984B00","accessState":"Online","overallHealthState":"Non-Critical","type":"Rackswitch","hostname":"ThinkAgile-VX-NE1032-SW03","description":"32*10 GbE SFP+","dnsHostnames":[],"domainName":"","FRU":"","fruSerialNumber":"","ipv4Addresses":["10.243.4.79"],"ipv6Addresses":["fe80:0:0:0:a68c:dbff:fe98:4b00"],"macAddresses":["A4:8C:DB:98:4B:00"],"machineType":"7159","manufacturer":"LNVO","manufacturerId":"","model":"HD1","partNumber":"00YL949 ","posID":"","powerState":"On","productId":"","productName":"Lenovo ThinkSystem NE1032 RackSwitch","protectedMode":"Unknown","serialNumber":"Y056DH79E046","slots":[],"stackMode":"none","vpdID":"","backedBy":"real","cmmDisplayName":"ThinkAgile-VX-NE1032-SW03","cmmHealthState":"Non-Critical","dataHandle":1517948378929,"elapsedTimeMillisecs":"3151","errorFields":[],"firmware":[{"name":"Uboot","date":"","type":"Boot ROM","build":"","version":"10.4.2.0","role":"","status":"N/A"},{"name":"Active Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Active"},{"name":"Standby Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Non-Active"}],"ipInterfaces":[{"name":"unknown","label":"unknown","IPv4enabled":false,"IPv4DHCPmode":"UNKNOWN","IPv6enabled":false,"IPv6DHCPenabled":false,"IPv4assignments":[{"id":0,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"10.243.4.79","type":"UNKNOWN"}],"IPv6assignments":[{"id":1,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"fe80:0:0:0:a68c:dbff:fe98:4b00","type":"UNKNOWN"}],"IPv6statelessEnabled":false,"IPv6staticEnabled":false}],"leds":[],"ntpPushEnabled":false,"ntpPushFrequency":0,"parent":{"uuid":null,"uri":null},"portDataSetTimestamp":"03:19:35","uri":"switches/00000000000010008000A48CDB984B00","userDescription":"","userDefinedName":"ThinkAgile-VX-NE1032-SW03","securityDescriptor":{"managedAuthSupported":false,"publicAccess":false,"uri":"switches/00000000000010008000a48cdb984b00","roleGroups":[],"managedAuthEnabled":false},"applyPending":"No","contact":"","cpuUtilization":"N/A","entitleSerialNumber":"MM41940","fans":[{"fanName":"Fan 1","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 2","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 3","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 4","fanSpeed":"1848 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 5","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 6","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"}],"height":1,"location":{"lowestRackUnit":0,"contact":"","location":"","rack":"","room":""},"manufacturingDate":"3817 (WWYY)","memoryUtilization":"","mgmtProcIPaddress":"10.243.4.79","panicDump":"Yes","ports":[{"configuredStatus":"up","interfaceIndex":"410001","operationalStatus":"up","peerMacAddress":"00:0A:F7:25:67:39","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/1","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410002","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/2","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410003","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e6:47:19","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/3","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410004","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/4","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410005","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:23:f1","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/5","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410006","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/6","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410007","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:2d:c9","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/7","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410008","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/8","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410009","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/9","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410010","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/10","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410011","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/11","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410012","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/12","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410013","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/13","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410014","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/14","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410015","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/15","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410016","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/16","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410017","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/17","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410018","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/18","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410019","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/19","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410020","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/20","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410021","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/21","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410022","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/22","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410023","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/23","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410024","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/24","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410025","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/25","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410026","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/26","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410027","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/27","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410028","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/28","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410029","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/29","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410030","operationalStatus":"up","peerMacAddress":"a4:8c:db:b3:40:00","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/30","PVID":"\"ESXi-Mgmt-Network-VLAN20\""},{"configuredStatus":"up","interfaceIndex":"410031","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:20","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/31","PVID":"\"ISL-Network-VLAN2001\""},{"configuredStatus":"up","interfaceIndex":"410032","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:21","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/32","PVID":"\"ISL-Network-VLAN2001\""}],"powerSupply":"Power Supply 1: on;Power Supply 2: on.","resetReason":"1","savePending":"Yes","stackRole":"none","sysObjectID":"1.3.6.1.4.1.19046.1.7.32","temperatureSensors":[{"sensorName":" HotSpot2 Temp","sensorState":" 34 C"},{"sensorName":" HotSpot1 Temp","sensorState":" 37 C"},{"sensorName":" MAC Temp","sensorState":" 37 C"},{"sensorName":" Exhaust Temp","sensorState":" 34 C"},{"sensorName":"Inlet Temp","sensorState":" 31 C"}],"upTime":"19 days, 19:03:29","isConnectionTrusted":"true","OS":"CNOS"}]}' http_version: recorded_at: Tue, 06 Feb 2018 20:20:04 GMT - request: diff --git a/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/mock_switches.yml b/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/mock_switches.yml index 7669898627..27303418fe 100644 --- a/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/mock_switches.yml +++ b/spec/vcr_cassettes/manageiq/providers/lenovo/physical_infra_manager/mock_switches.yml @@ -50,7 +50,7 @@ http_interactions: - chunked body: encoding: ASCII-8BIT - string: '{"switchList":[{"name":"ThinkAgile-VX-NE1032-SW03","uuid":"00000000000010008000A48CDB984B00","accessState":"Online","overallHealthState":"Non-Critical","type":"Rackswitch","hostname":"ThinkAgile-VX-NE1032-SW03","description":"32*10 GbE SFP+","dnsHostnames":[],"domainName":"","FRU":"","fruSerialNumber":"","ipv4Addresses":["10.243.4.79"],"ipv6Addresses":["fe80:0:0:0:a68c:dbff:fe98:4b00"],"macAddresses":["A4:8C:DB:98:4B:00"],"machineType":"7159","manufacturer":"LNVO","manufacturerId":"","model":"HD1","partNumber":"00YL949 ","posID":"","powerState":"On","productId":"","productName":"Lenovo ThinkSystem NE1032 RackSwitch","protectedMode":"Unknown","serialNumber":"Y056DH79E046","slots":[],"stackMode":"none","vpdID":"","backedBy":"real","cmmDisplayName":"ThinkAgile-VX-NE1032-SW03","cmmHealthState":"Non-Critical","dataHandle":1517948378929,"elapsedTimeMillisecs":"3151","errorFields":[],"firmware":[{"name":"Uboot","date":"","type":"Boot ROM","build":"","version":"10.4.2.0","role":"","status":"N/A"},{"name":"Active Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Active"},{"name":"Standby Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Non-Active"}],"ipInterfaces":[{"name":"unknown","label":"unknown","IPv4enabled":false,"IPv4DHCPmode":"UNKNOWN","IPv6enabled":false,"IPv6DHCPenabled":false,"IPv4assignments":[{"id":0,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"10.243.4.79","type":"UNKNOWN"}],"IPv6assignments":[{"id":1,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"fe80:0:0:0:a68c:dbff:fe98:4b00","type":"UNKNOWN"}],"IPv6statelessEnabled":false,"IPv6staticEnabled":false}],"leds":[],"ntpPushEnabled":false,"ntpPushFrequency":0,"parent":{"uuid":null,"uri":null},"portDataSetTimestamp":"03:19:35","uri":"switches/00000000000010008000A48CDB984B00","userDescription":"","userDefinedName":"ThinkAgile-VX-NE1032-SW03","securityDescriptor":{"managedAuthSupported":false,"publicAccess":false,"uri":"switches/00000000000010008000a48cdb984b00","roleGroups":[],"managedAuthEnabled":false},"applyPending":"No","contact":"","cpuUtilization":"N/A","entitleSerialNumber":"MM41940","fans":[{"fanName":"Fan 1","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 2","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 3","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 4","fanSpeed":"1848 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 5","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 6","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"}],"height":1,"location":{"lowestRackUnit":0,"contact":"","location":"","rack":"","room":""},"manufacturingDate":"3817 (WWYY)","memoryUtilization":"","mgmtProcIPaddress":"10.243.4.79","panicDump":"Yes","ports":[{"configuredStatus":"up","interfaceIndex":"410001","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e6:47:51","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/1","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410002","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/2","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410003","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e6:47:19","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/3","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410004","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/4","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410005","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:23:f1","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/5","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410006","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/6","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410007","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:2d:c9","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/7","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410008","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/8","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410009","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/9","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410010","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/10","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410011","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/11","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410012","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/12","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410013","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/13","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410014","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/14","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410015","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/15","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410016","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/16","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410017","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/17","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410018","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/18","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410019","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/19","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410020","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/20","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410021","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/21","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410022","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/22","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410023","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/23","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410024","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/24","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410025","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/25","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410026","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/26","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410027","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/27","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410028","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/28","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410029","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/29","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410030","operationalStatus":"up","peerMacAddress":"a4:8c:db:b3:40:00","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/30","PVID":"\"ESXi-Mgmt-Network-VLAN20\""},{"configuredStatus":"up","interfaceIndex":"410031","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:20","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/31","PVID":"\"ISL-Network-VLAN2001\""},{"configuredStatus":"up","interfaceIndex":"410032","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:21","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/32","PVID":"\"ISL-Network-VLAN2001\""}],"powerSupply":"Power Supply 1: on;Power Supply 2: on.","resetReason":"1","savePending":"Yes","stackRole":"none","sysObjectID":"1.3.6.1.4.1.19046.1.7.32","temperatureSensors":[{"sensorName":" HotSpot2 Temp","sensorState":" 34 C"},{"sensorName":" HotSpot1 Temp","sensorState":" 37 C"},{"sensorName":" MAC Temp","sensorState":" 37 C"},{"sensorName":" Exhaust Temp","sensorState":" 34 C"},{"sensorName":"Inlet Temp","sensorState":" 31 C"}],"upTime":"19 days, 19:03:29","isConnectionTrusted":"true","OS":"CNOS"}]}' - http_version: + string: '{"switchList":[{"name":"ThinkAgile-VX-NE1032-SW03","uuid":"00000000000010008000A48CDB984B00","accessState":"Online","overallHealthState":"Non-Critical","type":"Rackswitch","hostname":"ThinkAgile-VX-NE1032-SW03","description":"32*10 GbE SFP+","dnsHostnames":[],"domainName":"","FRU":"","fruSerialNumber":"","ipv4Addresses":["10.243.4.79"],"ipv6Addresses":["fe80:0:0:0:a68c:dbff:fe98:4b00"],"macAddresses":["A4:8C:DB:98:4B:00"],"machineType":"7159","manufacturer":"LNVO","manufacturerId":"","model":"HD1","partNumber":"00YL949 ","posID":"","powerState":"On","productId":"","productName":"Lenovo ThinkSystem NE1032 RackSwitch","protectedMode":"Unknown","serialNumber":"Y056DH79E046","slots":[],"stackMode":"none","vpdID":"","backedBy":"real","cmmDisplayName":"ThinkAgile-VX-NE1032-SW03","cmmHealthState":"Non-Critical","dataHandle":1517948378929,"elapsedTimeMillisecs":"3151","errorFields":[],"firmware":[{"name":"Uboot","date":"","type":"Boot ROM","build":"","version":"10.4.2.0","role":"","status":"N/A"},{"name":"Active Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Active"},{"name":"Standby Image","date":"","type":"Main Image","build":"","version":"10.4.2.0","role":"","status":"Non-Active"}],"ipInterfaces":[{"name":"unknown","label":"unknown","IPv4enabled":false,"IPv4DHCPmode":"UNKNOWN","IPv6enabled":false,"IPv6DHCPenabled":false,"IPv4assignments":[{"id":0,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"10.243.4.79","type":"UNKNOWN"}],"IPv6assignments":[{"id":1,"subnet":"127.0.0.1","gateway":"0.0.0.0","address":"fe80:0:0:0:a68c:dbff:fe98:4b00","type":"UNKNOWN"}],"IPv6statelessEnabled":false,"IPv6staticEnabled":false}],"leds":[],"ntpPushEnabled":false,"ntpPushFrequency":0,"parent":{"uuid":null,"uri":null},"portDataSetTimestamp":"03:19:35","uri":"switches/00000000000010008000A48CDB984B00","userDescription":"","userDefinedName":"ThinkAgile-VX-NE1032-SW03","securityDescriptor":{"managedAuthSupported":false,"publicAccess":false,"uri":"switches/00000000000010008000a48cdb984b00","roleGroups":[],"managedAuthEnabled":false},"applyPending":"No","contact":"","cpuUtilization":"N/A","entitleSerialNumber":"MM41940","fans":[{"fanName":"Fan 1","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 2","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 3","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 4","fanSpeed":"1848 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 5","fanSpeed":"1782 RPM (23 PWM)","fanState":"Back-to-Front"},{"fanName":"Fan 6","fanSpeed":"1914 RPM (23 PWM)","fanState":"Back-to-Front"}],"height":1,"location":{"lowestRackUnit":0,"contact":"","location":"","rack":"","room":""},"manufacturingDate":"3817 (WWYY)","memoryUtilization":"","mgmtProcIPaddress":"10.243.4.79","panicDump":"Yes","ports":[{"configuredStatus":"up","interfaceIndex":"410001","operationalStatus":"up","peerMacAddress":"5C:F3:FC:7F:0B:50","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/1","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410002","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/2","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410003","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e6:47:19","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/3","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410004","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/4","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410005","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:23:f1","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/5","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410006","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/6","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410007","operationalStatus":"up","peerMacAddress":"7c:d3:0a:e3:2d:c9","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/7","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410008","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/8","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410009","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/9","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410010","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/10","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410011","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/11","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410012","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/12","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410013","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/13","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410014","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/14","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410015","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/15","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410016","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/16","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410017","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/17","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410018","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/18","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410019","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/19","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410020","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/20","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410021","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/21","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410022","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/22","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410023","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/23","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410024","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/24","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410025","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/25","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410026","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/26","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410027","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/27","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410028","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/28","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410029","operationalStatus":"down","peerMacAddress":"","portName":"","portSpeed":"10000","portState":"down","tagPVID":"","vLAN":"trunk","port":"Ethernet1/29","PVID":"\"Lenovo-Network-VLAN546\""},{"configuredStatus":"up","interfaceIndex":"410030","operationalStatus":"up","peerMacAddress":"a4:8c:db:b3:40:00","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/30","PVID":"\"ESXi-Mgmt-Network-VLAN20\""},{"configuredStatus":"up","interfaceIndex":"410031","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:20","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/31","PVID":"\"ISL-Network-VLAN2001\""},{"configuredStatus":"up","interfaceIndex":"410032","operationalStatus":"up","peerMacAddress":"a4:8c:db:98:4c:21","portName":"","portSpeed":"10000","portState":"up","tagPVID":"","vLAN":"trunk","port":"Ethernet1/32","PVID":"\"ISL-Network-VLAN2001\""}],"powerSupply":"Power Supply 1: on;Power Supply 2: on.","resetReason":"1","savePending":"Yes","stackRole":"none","sysObjectID":"1.3.6.1.4.1.19046.1.7.32","temperatureSensors":[{"sensorName":" HotSpot2 Temp","sensorState":" 34 C"},{"sensorName":" HotSpot1 Temp","sensorState":" 37 C"},{"sensorName":" MAC Temp","sensorState":" 37 C"},{"sensorName":" Exhaust Temp","sensorState":" 34 C"},{"sensorName":"Inlet Temp","sensorState":" 31 C"}],"upTime":"19 days, 19:03:29","isConnectionTrusted":"true","OS":"CNOS"}]}' + http_version: recorded_at: Tue, 06 Feb 2018 20:20:04 GMT recorded_with: VCR 3.0.3