From 2a8d261b41fd95fedf5539aa794aa89ca75831ea Mon Sep 17 00:00:00 2001 From: Uggla Date: Thu, 15 Oct 2015 13:55:28 +0200 Subject: [PATCH] Add both UEFI parameters "Continuous" and "Once" as an example. --- examples/simple-proliant.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/simple-proliant.py b/examples/simple-proliant.py index ce33940..22cf8dd 100644 --- a/examples/simple-proliant.py +++ b/examples/simple-proliant.py @@ -33,7 +33,7 @@ remote_mgmt = redfish.connect(URL, USER_NAME, PASSWORD, verify_cert=False) print ("Redfish API version : %s \n" % remote_mgmt.get_api_version()) -# Uncomment following line to reset the blade !!! +# Uncomment following line to reset the blade !!! #remote_mgmt.Systems.systems_list[0].reset_system() # TODO : create an attribute to link the managed system directly @@ -63,7 +63,8 @@ remote_mgmt.Systems.systems_list[0].bios.set_parameter("UefiShellStartupLocation remote_mgmt.Systems.systems_list[0].bios.set_parameter("UefiShellStartupUrl", "http://10.3.222.88/deploy/startup.nsh") remote_mgmt.Systems.systems_list[0].set_parameter_json('{"Boot": {"BootSourceOverrideTarget": "UefiShell"}}') -remote_mgmt.Systems.systems_list[0].set_parameter_json('{"Boot": {"BootSourceOverrideEnabled" : "Continuous"}}') +# remote_mgmt.Systems.systems_list[0].set_parameter_json('{"Boot": {"BootSourceOverrideEnabled" : "Continuous"}}') +remote_mgmt.Systems.systems_list[0].set_parameter_json('{"Boot": {"BootSourceOverrideEnabled" : "Once"}}') #Reset of the system is required to apply the changes remote_mgmt.Systems.systems_list[0].reset_system()