ironicclient.v1.driver module¶
-
class
ironicclient.v1.driver.
DriverManager
(api)[source]¶ Bases:
ironicclient.common.base.Manager
-
get_vendor_passthru_methods
(driver_name, os_ironic_api_version=None, global_request_id=None)[source]¶
-
list
(driver_type=None, detail=None, os_ironic_api_version=None, global_request_id=None)[source]¶ Retrieve a list of drivers.
- Parameters
driver_type – Optional, string to filter the drivers by type. Value should be ‘classic’ or ‘dynamic’.
detail – Optional, flag whether to return detailed information about drivers. Default is None means not to send the arg to the server due to older versions of the server cannot handle filtering on detail.
os_ironic_api_version – String version (e.g. “1.35”) to use for the request. If not specified, the client’s default is used.
global_request_id – String containing global request ID header value (in form “req-<UUID>”) to use for the request.
- Returns
A list of drivers.
-
raid_logical_disk_properties
(driver_name, os_ironic_api_version=None, global_request_id=None)[source]¶ Returns the RAID logical disk properties for the driver.
- Parameters
driver_name – Name of the driver.
os_ironic_api_version – String version (e.g. “1.35”) to use for the request. If not specified, the client’s default is used.
global_request_id – String containing global request ID header value (in form “req-<UUID>”) to use for the request.
- Returns
A dictionary containing the properties that can be mentioned for RAID logical disks and a textual description for them. It returns an empty dictionary on error.
-
update
(driver_name, patch, http_method='PATCH', os_ironic_api_version=None, global_request_id=None)[source]¶
-
vendor_passthru
(driver_name, method, args=None, http_method=None, os_ironic_api_version=None, global_request_id=None)[source]¶ Issue requests for vendor-specific actions on a given driver.
- Parameters
driver_name – The name of the driver.
method – Name of the vendor method.
args – Optional. The arguments to be passed to the method.
http_method – The HTTP method to use on the request. Defaults to POST.
os_ironic_api_version – String version (e.g. “1.35”) to use for the request. If not specified, the client’s default is used.
global_request_id – String containing global request ID header value (in form “req-<UUID>”) to use for the request.
-