1*** Settings *** 2Documentation Test BMC multiple network interface functionalities. 3 4# User input BMC IP for the eth1. 5# Use can input as -v OPENBMC_HOST_1:xx.xxx.xx from command line. 6Library ../../lib/bmc_redfish.py https://${OPENBMC_HOST_1}:${HTTPS_PORT} 7... ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} WITH NAME Redfish1 8 9Resource ../../lib/resource.robot 10Resource ../../lib/common_utils.robot 11Resource ../../lib/connection_client.robot 12Resource ../../lib/bmc_network_utils.robot 13Resource ../../lib/openbmc_ffdc.robot 14 15Suite Setup Suite Setup Execution 16Test Teardown FFDC On Test Case Fail 17 18 19*** Test Cases *** 20 21Verify Both Interfaces BMC IP Addreeses Accessible Via SSH 22 [Documentation] Verify both interfaces (eth0, eth1) BMC IP addresses accessible via SSH. 23 [Tags] Verify_Both_Interfaces_BMC_IP_Addresses_Accessible_Via_SSH 24 25 Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} host=${OPENBMC_HOST} 26 Open Connection And Log In ${OPENBMC_USERNAME} ${OPENBMC_PASSWORD} host=${OPENBMC_HOST_1} 27 Close All Connections 28 29 30*** Keywords *** 31 32Get Network Configuration Using Channel Number 33 [Documentation] Get ethernet interface. 34 [Arguments] ${channel_number} 35 36 # Description of argument(s): 37 # channel_number Ethernet channel number, 1 is for eth0 and 2 is for eth1 (e.g. "1"). 38 39 ${active_channel_config}= Get Active Channel Config 40 ${ethernet_interface}= Set Variable ${active_channel_config['${channel_number}']['name']} 41 ${resp}= Redfish.Get ${REDFISH_NW_ETH_IFACE}${ethernet_interface} 42 43 @{network_configurations}= Get From Dictionary ${resp.dict} IPv4StaticAddresses 44 [Return] @{network_configurations} 45 46 47Suite Setup Execution 48 [Documentation] Do suite setup task. 49 50 Valid Value OPENBMC_HOST_1 51 52 # Check both interfaces are configured and reachable. 53 Ping Host ${OPENBMC_HOST} 54 Ping Host ${OPENBMC_HOST_1} 55