Enable HTTP network boot for Redfish hardware

Redfish hardware usually will support better methods -- e.g.
redfish-https or redfish-virtual-media, however we've had some user
requests for the http boot interfaces on Redfish.

Since we can generally expect the generic boot interfaces to work on
redfish, this enables all of them.

Related-Bug: #2032380
Change-Id: I9c36072f6165baaa985862113b283f34bed7bee4
This commit is contained in:
Jay Faulkner 2024-06-17 15:10:50 -07:00
parent ebbc8300c3
commit c21b7d7038

View File

@ -15,10 +15,8 @@
from ironic.drivers import generic
from ironic.drivers.modules import agent
from ironic.drivers.modules import ipxe
from ironic.drivers.modules import noop
from ironic.drivers.modules import noop_mgmt
from ironic.drivers.modules import pxe
from ironic.drivers.modules.redfish import bios as redfish_bios
from ironic.drivers.modules.redfish import boot as redfish_boot
from ironic.drivers.modules.redfish import firmware as redfish_firmware
@ -58,9 +56,9 @@ class RedfishHardware(generic.GenericHardware):
"""List of supported boot interfaces."""
# NOTE(dtantsur): virtual media goes last because of limited hardware
# vendors support.
return [ipxe.iPXEBoot, pxe.PXEBoot,
redfish_boot.RedfishVirtualMediaBoot,
redfish_boot.RedfishHttpsBoot]
return (super().supported_boot_interfaces
+ [redfish_boot.RedfishVirtualMediaBoot,
redfish_boot.RedfishHttpsBoot])
@property
def supported_vendor_interfaces(self):