blob: 5983331b090bbead21af09bdcce60f685476e257 [file] [log] [blame]
*** Settings ***
Documentation OEM IPMI in-band factory reset.
Resource ../lib/resource.txt
Resource ../lib/ipmi_client.robot
Resource ../lib/boot_utils.robot
Library ../lib/ipmi_utils.py
Test Teardown FFDC On Test Case Fail
Test Setup Delete All Error Logs
*** Test Cases ***
Test Inband IPMI Factory Reset
[Documentation] Trigger inband factory reset and verify.
[Tags] Test_Inband_IPMI_Factory_Reset
REST Power On stack_mode=skip
${network_info}= Get Lan Print Dict ipmi_cmd_type=inband
Should Not Be Empty ${network_info}
# Call reset method.
Run Inband IPMI Raw Command 0x32 0x20
# Reboot BMC.
Run Inband IPMI Raw Command 0x06 0x03
# Allow BMC to shutdown.
Sleep 1 min
# Check if BMC comes back online and IPMI host services are responding.
Wait Until Keyword Succeeds 10 min 30 sec
... Run Inband IPMI Raw Command lan print
Set BMC Network From Host ${network_info}