George Keishing | b4d4a4a | 2018-08-27 13:35:39 -0500 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Documentation OEM IPMI in-band factory reset. |
| 3 | |
| 4 | Resource ../lib/resource.txt |
| 5 | Resource ../lib/ipmi_client.robot |
| 6 | Resource ../lib/boot_utils.robot |
| 7 | Library ../lib/ipmi_utils.py |
| 8 | |
| 9 | |
| 10 | Test Teardown FFDC On Test Case Fail |
| 11 | Test Setup Delete All Error Logs |
| 12 | |
| 13 | *** Test Cases *** |
| 14 | |
| 15 | Test 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} |