Added a keyword in utils to reset BIOS via Redfish
Resolve openbmc/openbmc-test-automation#1978
Change-Id: Ie60acde53716eab1daaddcb99560cf57caa762e1
Signed-off-by: Anvesh Kumar Rayankula <anvesr77@in.ibm.com>
diff --git a/lib/bmc_redfish_utils.robot b/lib/bmc_redfish_utils.robot
index 8c400eb..0fb2c50 100644
--- a/lib/bmc_redfish_utils.robot
+++ b/lib/bmc_redfish_utils.robot
@@ -59,6 +59,13 @@
Run Keyword And Ignore Error Redfish.Logout
+Reset BIOS Via Redfish
+ [Documentation] Do BIOS reset through Redfish.
+
+ ${target}= redfish_utils.Get Target Actions /redfish/v1/Systems/system/Bios/ Bios.ResetBios
+ Redfish.Post ${target} valid_status_codes=[${HTTP_OK}]
+
+
Delete All Redfish Sessions
[Documentation] Delete all active redfish sessions.