blob: 5983331b090bbead21af09bdcce60f685476e257 [file] [log] [blame]
George Keishingb4d4a4a2018-08-27 13:35:39 -05001*** Settings ***
2Documentation OEM IPMI in-band factory reset.
3
4Resource ../lib/resource.txt
5Resource ../lib/ipmi_client.robot
6Resource ../lib/boot_utils.robot
7Library ../lib/ipmi_utils.py
8
9
10Test Teardown FFDC On Test Case Fail
11Test Setup Delete All Error Logs
12
13*** Test Cases ***
14
15Test Inband IPMI Factory Reset
16 [Documentation] Trigger inband factory reset and verify.
17 [Tags] Test_Inband_IPMI_Factory_Reset
18
19 REST Power On stack_mode=skip
20
Michael Walsh94811f62018-09-05 14:55:12 -050021 ${network_info}= Get Lan Print Dict ipmi_cmd_type=inband
George Keishingb4d4a4a2018-08-27 13:35:39 -050022 Should Not Be Empty ${network_info}
23
24 # Call reset method.
25 Run Inband IPMI Raw Command 0x32 0x20
26
27 # Reboot BMC.
28 Run Inband IPMI Raw Command 0x06 0x03
29
30 # Allow BMC to shutdown.
31 Sleep 1 min
32
33 # Check if BMC comes back online and IPMI host services are responding.
34 Wait Until Keyword Succeeds 10 min 30 sec
35 ... Run Inband IPMI Raw Command lan print
36
37 Set BMC Network From Host ${network_info}