Module Expr Str Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str Str NameLoad AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr name NameStore body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str Str AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Str Dict Str AttributeLoad NameLoad attr decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Dict Str Str NameLoad AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Return Dict Str Str NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list decorator_list
N/A N/A 
AMT Management Driver
 N/A copy oslo_log log logging oslo_utils excutils oslo_utils importutils ironic.common exception ironic.common.i18n _ ironic.common.i18n _LE ironic.common.i18n _LI ironic.conductor task_manager ironic.drivers base ironic.drivers.modules.amt common amt_common ironic.drivers.modules.amt resource_uris N/A pywsman N/A N/A importutils try_import pywsman N/A LOG N/A N/A logging getLogger __name__ N/A _ADDRESS http://schemas.xmlsoap.org/ws/2004/08/addressing N/A _ANONYMOUS http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous N/A _WSMAN http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd _generate_change_boot_order_input N/A N/A device N/A N/A N/A Generate Xmldoc as change_boot_order input.

    This generates a Xmldoc used as input for change_boot_order.

    :param device: the boot device.
    :returns: Xmldoc.
     N/A method_input ChangeBootOrder_INPUT N/A namespace N/A resource_uris CIM_BootConfigSetting N/A doc N/A N/A pywsman XmlDoc method_input N/A root N/A N/A doc root N/A N/A N/A root set_ns namespace N/A child N/A N/A root add namespace Source None N/A N/A N/A child add _ADDRESS Address _ANONYMOUS N/A grand_child N/A N/A child add _ADDRESS ReferenceParameters None N/A N/A N/A grand_child add _WSMAN ResourceURI N/A resource_uris CIM_BootSourceSetting N/A g_grand_child N/A N/A grand_child add _WSMAN SelectorSet None N/A g_g_grand_child N/A N/A g_grand_child add _WSMAN Selector device N/A N/A N/A g_g_grand_child attr_add _WSMAN Name InstanceID N/A doc N/A _set_boot_device_order N/A N/A node boot_device N/A N/A N/A Set boot device order configuration of AMT Client.

    :param node: a node object
    :param boot_device: the boot device
    :raises: AMTFailure
    :raises: AMTConnectFailure
     N/A N/A N/A amt_common awake_amt_interface node N/A client N/A N/A amt_common get_wsman_client node N/A device N/A N/A amt_common BOOT_DEVICES_MAPPING N/A boot_device N/A doc N/A _generate_change_boot_order_input device N/A method ChangeBootOrder N/A options N/A N/A pywsman ClientOptions N/A N/A N/A options add_selector InstanceID Intel(r) AMT: Boot Configuration 0 N/A N/A N/A N/A N/A client wsman_invoke options N/A resource_uris CIM_BootConfigSetting method doc N/A N/A N/A N/A N/A exception AMTFailure N/A exception AMTConnectFailure N/A e N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A N/A LOG exception N/A _LE Failed to set boot device %(boot_device)s for node %(node_id)s with error: %(error)s. N/A boot_device node_id error boot_device N/A node uuid e N/A N/A N/A N/A LOG info N/A _LI Successfully set boot device %(boot_device)s for node %(node_id)s N/A boot_device node_id boot_device N/A node uuid N/A _generate_enable_boot_config_input N/A N/A N/A N/A N/A Generate Xmldoc as enable_boot_config input.

    This generates a Xmldoc used as input for enable_boot_config.

    :returns: Xmldoc.
     N/A method_input SetBootConfigRole_INPUT N/A namespace N/A resource_uris CIM_BootService N/A doc N/A N/A pywsman XmlDoc method_input N/A root N/A N/A doc root N/A N/A N/A root set_ns namespace N/A child N/A N/A root add namespace BootConfigSetting None N/A N/A N/A child add _ADDRESS Address _ANONYMOUS N/A grand_child N/A N/A child add _ADDRESS ReferenceParameters None N/A N/A N/A grand_child add _WSMAN ResourceURI N/A resource_uris CIM_BootConfigSetting N/A g_grand_child N/A N/A grand_child add _WSMAN SelectorSet None N/A g_g_grand_child N/A N/A g_grand_child add _WSMAN Selector Intel(r) AMT: Boot Configuration 0 N/A N/A N/A g_g_grand_child attr_add _WSMAN Name InstanceID N/A N/A N/A root add namespace Role 1 N/A doc N/A _enable_boot_config N/A N/A node N/A N/A N/A Enable boot configuration of AMT Client.

    :param node: a node object
    :raises: AMTFailure
    :raises: AMTConnectFailure
     N/A N/A N/A amt_common awake_amt_interface node N/A client N/A N/A amt_common get_wsman_client node N/A method SetBootConfigRole N/A doc N/A _generate_enable_boot_config_input N/A options N/A N/A pywsman ClientOptions N/A N/A N/A options add_selector Name Intel(r) AMT Boot Service N/A N/A N/A N/A N/A client wsman_invoke options N/A resource_uris CIM_BootService method doc N/A N/A N/A N/A N/A exception AMTFailure N/A exception AMTConnectFailure N/A e N/A N/A N/A N/A excutils save_and_reraise_exception N/A N/A N/A N/A LOG exception N/A _LE Failed to enable boot config for node %(node_id)s with error: %(error)s. N/A node_id error N/A node uuid e N/A N/A N/A N/A LOG info N/A _LI Successfully enabled boot config for node %(node_id)s. N/A node_id N/A node uuid N/A AMTManagement N/A N/A base ManagementInterface N/A get_properties N/A N/A self N/A N/A N/A N/A N/A copy deepcopy N/A amt_common COMMON_PROPERTIES N/A validate N/A N/A self task N/A N/A N/A Validate the driver_info in the node

        Check if the driver_info contains correct required fields

        :param task: a TaskManager instance contains the target node
        :raises: MissingParameterValue if any required parameters are missing.
        :raises: InvalidParameterValue if any parameters have invalid values.
         N/A N/A N/A amt_common parse_driver_info N/A task node N/A get_supported_boot_devices N/A N/A self task N/A N/A N/A Get a list of the supported boot devices.

        :param task: a task from TaskManager.
        :returns: A list with the supported boot devices.
         N/A N/A list N/A amt_common BOOT_DEVICES_MAPPING N/A set_boot_device N/A N/A self task device persistent N/A False N/A N/A Set the boot device for the task's node.

        Set the boot device to use on next boot of the node.

        :param task: a task from TaskManager.
        :param device: the boot device
        :param persistent: Boolean value. True if the boot device will
                           persist to all future boots, False if not.
                           Default: False.
        :raises: InvalidParameterValue if an invalid boot device is specified.
         N/A node N/A task node N/A N/A device N/A amt_common BOOT_DEVICES_MAPPING N/A N/A N/A N/A exception InvalidParameterValue N/A N/A _ set_boot_device called with invalid device %(device)s for node %(node_id)s. N/A device node_id device N/A node uuid N/A driver_internal_info N/A node driver_internal_info N/A N/A driver_internal_info N/A amt_boot_device device N/A N/A driver_internal_info N/A amt_boot_persistent persistent N/A N/A node driver_internal_info driver_internal_info N/A N/A N/A node save N/A N/A task_manager require_exclusive_lock get_boot_device N/A N/A self task N/A N/A N/A Get the current boot device for the task's node.

        Returns the current boot device of the node.

        :param task: a task from TaskManager.
        :returns: a dictionary containing:

             :boot_device: the boot device
             :persistent: Whether the boot device will persist to all
                future boots or not, None if it is unknown.

         N/A driver_internal_info N/A N/A task node driver_internal_info N/A device N/A N/A driver_internal_info get amt_boot_device N/A persistent N/A N/A driver_internal_info get amt_boot_persistent N/A N/A device N/A N/A device N/A amt_common DEFAULT_BOOT_DEVICE N/A persistent True N/A N/A boot_device persistent device persistent N/A ensure_next_boot_device N/A N/A self node boot_device N/A N/A N/A Set next boot device (one time only) of AMT Client.

        :param node: a node object
        :param boot_device: the boot device
        :raises: AMTFailure
        :raises: AMTConnectFailure
         N/A driver_internal_info N/A node driver_internal_info N/A N/A N/A N/A driver_internal_info get amt_boot_persistent N/A N/A N/A driver_internal_info N/A amt_boot_device N/A amt_common DEFAULT_BOOT_DEVICE N/A N/A driver_internal_info N/A amt_boot_persistent True N/A N/A node driver_internal_info driver_internal_info N/A N/A N/A node save N/A N/A _set_boot_device_order node boot_device N/A N/A _enable_boot_config node N/A get_sensors_data N/A N/A self task N/A N/A N/A N/A NotImplementedError N/A N/A