I'm trying to change the NIC a server boots from using the redfish module in python. The server is a supermicro board:
Firmware Version 01.00.17
Firmware Build Time 09/02/2021
Redfish Version 1.8.0
BIOS Firmware Version 1.1a
Running
REDFISH_OBJ.get("/redfish/v1/Systems/1/Bios")
yields
BootOption#1 = UEFI Network:(B23/D0/F0) UEFI PXE IPv4: Intel(R) Ethernet Controller X710 for 10GBASE-T(MAC:3cecef5ef7ba)
BootOption#1$4 = (B23/D0/F0) UEFI PXE IPv4: Intel(R) Ethernet Controller X710 for 10GBASE-T(MAC:3cecef5ef7ba)
BootOption#3$4 = (B23/D0/F2) UEFI PXE IPv4: Intel(R) Ethernet Controller X710 for 10 Gigabit SFP+(MAC:3cecef5ef7bc)
Now I want to change this to boot from the 3rd NIC first so I run:
REDFISH_OBJ.patch("/redfish/v1/Systems/1/Bios", body={"Attributes": {"BootOption#1": "UEFI Network:(B23/D0/F2) UEFI PXE IPv4: Intel(R) Ethernet Controller X710 for 10 Gigabit SFP+(MAC:3cecef5ef7bc)"}})
but this results in an error response:
400
Content-Length 526
OData-Version 4.0, 4.0
Content-Type application/json; charset=UTF-8
Strict-Transport-Security max-age=31536000; includeSubdomains
X-XSS-Protection 1; mode=block
Content-Security-Policy default-src 'self';connect-src 'self' ws: wss:;frame-src 'self';img-src 'self' data:;object-src 'self';font-src 'self' data:;script-src 'self' 'unsafe-inline' 'unsafe-eval';style-src 'self' 'unsafe-inline';worker-src 'self' blob:;
Cache-Control private
X-Frame-Options SAMEORIGIN
X-Content-Type-Options nosniff
Date Tue, 26 Jul 2022 14:00:26 GMT
{"error":{"code":"Base.v1_4_0.GeneralError","Message":"A general error has occurred. See ExtendedInfo for more information.","@Message.ExtendedInfo":[{"MessageId":"Base.1.4.PropertyValueTypeError","Severity":"Warning","Resolution":"Correct the value for the property in the request body and resubmit the request if the operation failed.","Message":"The value null for the property BootOption#1 is of a different type than the property can accept.","MessageArgs":["null","BootOption#1"],"RelatedProperties":["BootOption#1"]}]}}
Anyone know how to change the boot options via redfish?