The Driver
class inherits from Resource
.
The base resource
_synchronized (bool) – This is not intended to be used directly. See
new()
and
existing()
.
connection (openstack.connection.Connection) – Reference to the Connection being used. Defaults to None to allow
Resource objects to be used without an active Connection, such as
in unit tests. Use of self._connection
in Resource code should
protect itself with a check for None.
A list of active hosts that support this driver.
A list of relative links, including the self and bookmark links.
The name of the driver
A list of links to driver properties.
Default BIOS interface implementation. Introduced in API microversion 1.40.
Default boot interface implementation. Introduced in API microversion 1.30.
Default console interface implementation. Introduced in API microversion 1.30.
Default deploy interface implementation. Introduced in API microversion 1.30.
Default inspect interface implementation. Introduced in API microversion 1.30.
Default management interface implementation. Introduced in API microversion 1.30.
Default network interface implementation. Introduced in API microversion 1.30.
Default port interface implementation. Introduced in API microversion 1.30.
Default RAID interface implementation. Introduced in API microversion 1.30.
Default rescue interface implementation. Introduced in API microversion 1.38.
Default storage interface implementation. Introduced in API microversion 1.33.
Default vendor interface implementation. Introduced in API microversion 1.30.
Enabled BIOS interface implementations. Introduced in API microversion 1.40.
Enabled boot interface implementations. Introduced in API microversion 1.30.
Enabled console interface implementations. Introduced in API microversion 1.30.
Enabled deploy interface implementations. Introduced in API microversion 1.30.
Enabled inspect interface implementations. Introduced in API microversion 1.30.
Enabled management interface implementations. Introduced in API microversion 1.30.
Enabled network interface implementations. Introduced in API microversion 1.30.
Enabled port interface implementations. Introduced in API microversion 1.30.
Enabled RAID interface implementations. Introduced in API microversion 1.30.
Enabled rescue interface implementations. Introduced in API microversion 1.38.
Enabled storage interface implementations. Introduced in API microversion 1.33.
Enabled vendor interface implementations. Introduced in API microversion 1.30.
Fetch vendor specific methods exposed by driver
session – The session to use for making this request.
A dict of the available vendor passthru methods for driver.
Method names keys and corresponding usages in dict form as values
Usage dict properties:
* async
: bool # Is passthru function invoked asynchronously
* attach
: bool # Is return value attached to response object
* description
: str # Description of what the method does
* http_methods
: list # List of HTTP methods supported
Call a vendor specific passthru method
Contents of body are params passed to the hardware driver function. Validation happens there. Missing parameters, or excess parameters will cause the request to be rejected
session – The session to use for making this request.
method – Vendor passthru method name.
verb – One of GET, POST, PUT, DELETE, depending on the driver and method.
body – passed to the vendor function as json body.
ValueError
if verb
is not one of
GET, POST, PUT, DELETE
response of method call.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.