ironic.api.controllers.v1.driver.
DriverPassthruController
(*args, **kwargs)[source]¶Bases: pecan.rest.RestController
REST controller for driver passthru.
This controller allow vendors to expose cross-node functionality in the Ironic API. Ironic will merely relay the message from here to the specified driver, no introspection will be made in the message body.
ironic.api.controllers.v1.driver.
DriverRaidController
(*args, **kwargs)[source]¶Bases: pecan.rest.RestController
logical_disk_properties
(driver_name)[source]¶Returns the logical disk properties for the driver.
driver_name – Name of the driver.
A dictionary containing the properties that can be mentioned for logical disks and a textual description for them.
UnsupportedDriverExtension if the driver doesn’t support RAID configuration.
NotAcceptable, if requested version of the API is less than 1.12.
DriverNotFound, if driver is not loaded on any of the conductors.
ironic.api.controllers.v1.driver.
DriversController
(*args, **kwargs)[source]¶Bases: pecan.rest.RestController
REST controller for Drivers.
properties
(driver_name)[source]¶Retrieve property information of the given driver.
driver_name – name of the driver.
dictionary with <property name>:<property description> entries.
DriverNotFound (HTTP 404) if the driver name is invalid or the driver cannot be loaded.
raid
= <ironic.api.controllers.v1.driver.DriverRaidController object>¶Expose RAID as a sub-element of drivers
vendor_passthru
= <ironic.api.controllers.v1.driver.DriverPassthruController object>¶ironic.api.controllers.v1.driver.
convert_with_links
(name, hosts, detail=False, interface_info=None, fields=None, sanitize=True)[source]¶Convert driver/hardware type info to a dict.
name – name of a hardware type.
hosts – list of conductor hostnames driver is active on.
detail – boolean, whether to include detailed info, such as the ‘type’ field and default/enabled interfaces fields.
interface_info – optional list of dicts of hardware interface info.
fields – list of fields to preserve, or None
to preserve default
sanitize – boolean, sanitize driver
dict representing the driver object.
ironic.api.controllers.v1.driver.
hide_fields_in_newer_versions
(driver)[source]¶This method hides fields that were added in newer API versions.
Certain fields were introduced at certain API versions. These fields are only made available when the request’s API version matches or exceeds the versions when these fields were introduced.
ironic.api.controllers.v1.driver.
list_convert_with_links
(hardware_types, detail=False, fields=None)[source]¶Convert drivers and hardware types to an API-serializable object.
hardware_types – dict mapping hardware type names to conductor hostnames.
detail – boolean, whether to include detailed info, such as the ‘type’ field and default/enabled interfaces fields.
fields – list of fields to preserve, or None
to preserve default
an API-serializable driver collection object.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.