ironic.drivers.modules.redfish.utils.
SessionCache
(driver_info)[source]¶Bases: object
Cache of HTTP sessions credentials
AUTH_CLASSES
= {'auto': <class 'sushy.auth.SessionOrBasicAuth'>, 'basic': <class 'sushy.auth.BasicAuth'>, 'session': <class 'sushy.auth.SessionAuth'>}¶ironic.drivers.modules.redfish.utils.
get_enabled_macs
(task, system)[source]¶Get information on MAC addresses of enabled ports using Redfish.
task – a TaskManager instance containing the node to act on.
system – a Redfish System object
a dictionary containing MAC addresses of enabled interfaces in a {‘mac’: ‘state’} format
ironic.drivers.modules.redfish.utils.
get_event_service
(node)[source]¶Get a node’s event service.
node – an Ironic node object.
RedfishConnectionError when it fails to connect to Redfish
RedfishError when the EventService is not registered in Redfish
ironic.drivers.modules.redfish.utils.
get_system
(node)[source]¶Get a Redfish System that represents a node.
node – an Ironic node object
RedfishConnectionError when it fails to connect to Redfish
RedfishError if the System is not registered in Redfish
ironic.drivers.modules.redfish.utils.
get_task_monitor
(node, uri)[source]¶Get a TaskMonitor for a node.
node – an Ironic node object
uri – the URI of a TaskMonitor
RedfishConnectionError when it fails to connect to Redfish
RedfishError when the TaskMonitor is not available in Redfish
ironic.drivers.modules.redfish.utils.
get_update_service
(node)[source]¶Get a node’s update service.
node – an Ironic node object
RedfishConnectionError when it fails to connect to Redfish
RedfishError when the UpdateService is not registered in Redfish
ironic.drivers.modules.redfish.utils.
parse_driver_info
(node)[source]¶Parse the information required for Ironic to connect to Redfish.
node – an Ironic node object
dictionary of parameters
InvalidParameterValue on malformed parameter(s)
MissingParameterValue on missing parameter(s)
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.