blob: fd3344af547a6233277e46808a1b5b0e133aff66 [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
21 ${network_info}= Get Lan Print Dict
22 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}