The ironic.drivers.modules.amt.common
Module¶
Common functionalities for AMT Driver
-
class
ironic.drivers.modules.amt.common.
Client
(address, protocol, username, password)[source]¶ Bases:
object
AMT client.
Create a pywsman client to connect to the target server
-
wsman_get
(resource_uri, options=None)[source]¶ Get target server info
Parameters: - options – client options
- resource_uri – a URI to an XML schema
Returns: XmlDoc object
Raises: AMTFailure if get unexpected response.
Raises: AMTConnectFailure if unable to connect to the server.
-
wsman_invoke
(options, resource_uri, method, data=None)[source]¶ Invoke method on target server
Parameters: - options – client options
- resource_uri – a URI to an XML schema
- method – invoke method
- data – a XmlDoc as invoke input
Returns: XmlDoc object
Raises: AMTFailure if get unexpected response.
Raises: AMTConnectFailure if unable to connect to the server.
-