Add BIOS attribute patch setting keyword
Change-Id: Ie84ed7e525db90ff921223d2d215f116b888e621
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index c9ceccf..ad1a700 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1012,6 +1012,20 @@
[Return] ${bios_attr_dict}
+
+Set BIOS Attribute
+ [Documentation] PATCH the BIOS attribute for /redfish/v1/Systems/system/Bios.
+ [Arguments] ${attribute_name} ${attribute_value}
+
+ # Description of argument(s):
+ # attribute_name Any valid BIOS attribute.
+ # attribute_value Valid allowed attribute values.
+
+ # Python module: get_member_list(resource_path)
+ ${systems}= Redfish_Utils.Get Member List /redfish/v1/Systems
+ Redfish.Patch ${systems[0]}/Bios/Settings body={"Attributes":{"${attribute_name}":"${attribute_value}"}}
+
+
Is BMC Operational
[Documentation] Check if BMC is enabled.