From 3cfee6d2f22bbd6c9a67d79bf2a3b8c6fc32af4e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 1 Feb 2021 08:52:09 -0500 Subject: [PATCH] Add usb alias for floppy and usb for redfish Particularly in redfish, there is a distinction made from 'floppy', and some implementations do not implement floppy correctly. Change-Id: I983d4ba94579a850b36786f04cbe03af3fce8de2 --- pyghmi/ipmi/command.py | 1 + pyghmi/redfish/command.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py index 7d47659c..6025509d 100644 --- a/pyghmi/ipmi/command.py +++ b/pyghmi/ipmi/command.py @@ -59,6 +59,7 @@ boot_devices = { 'optical': 0x14, 'dvd': 0x14, 'floppy': 0x3c, + 'usb': 0x3c, 'default': 0x0, 'setup': 0x18, 'bios': 0x18, diff --git a/pyghmi/redfish/command.py b/pyghmi/redfish/command.py index 81196618..0f3fe558 100644 --- a/pyghmi/redfish/command.py +++ b/pyghmi/redfish/command.py @@ -56,6 +56,7 @@ boot_devices_write = { 'network': 'Pxe', 'pxe': 'Pxe', 'hd': 'Hdd', + 'usb': 'Usb', 'cd': 'Cd', 'cdrom': 'Cd', 'optical': 'Cd',