Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict Str Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Assign NameStore Dict Str Str Str Call NameLoad Str Call NameLoad Str Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr Str Num TryExcept body Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str TryExcept body Assign SubscriptStore NameLoad Index Str Call NameLoad Call AttributeLoad NameLoad attr Str Str If CompareNotIn SubscriptLoad NameLoad Index Str ListLoad Str Str body Expr Call AttributeLoad NameLoad attr Call NameLoad Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Str If NameLoad body Assign NameStore BinOpMod Call NameLoad Str Call AttributeLoad Str attr NameLoad Raise Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad decorator_list
N/A N/A 
Common functionalities shared between different DRAC modules.
 oslo_utils importutils ironic.common exception ironic.common.i18n _ ironic.common utils N/A drac_client N/A N/A importutils try_import dracclient.client N/A drac_constants N/A N/A importutils try_import dracclient.constants N/A REQUIRED_PROPERTIES N/A drac_host drac_username drac_password N/A _ IP address or hostname of the DRAC card. Required. N/A _ username used for authentication. Required. N/A _ password used for authentication. Required. N/A OPTIONAL_PROPERTIES N/A drac_port drac_path drac_protocol N/A _ port used for WS-Man endpoint; default is 443. Optional. N/A _ path used for WS-Man endpoint; default is "/wsman". Optional. N/A _ protocol used for WS-Man endpoint; one of http, https; default is "https". Optional. N/A COMMON_PROPERTIES N/A N/A REQUIRED_PROPERTIES copy N/A N/A N/A COMMON_PROPERTIES update OPTIONAL_PROPERTIES parse_driver_info N/A N/A node N/A N/A N/A Parse a node's driver_info values.

    Parses the driver_info of the node, reads default values
    and returns a dict containing the combination of both.

    :param node: an ironic node object.
    :returns: a dict containing information from driver_info
              and default values.
    :raises: InvalidParameterValue if some mandatory information
             is missing on the node or on invalid inputs.
     N/A driver_info N/A node driver_info N/A parsed_driver_info N/A N/A error_msgs N/A N/A param REQUIRED_PROPERTIES N/A N/A N/A N/A N/A parsed_driver_info N/A param N/A str N/A driver_info N/A param N/A N/A N/A KeyError N/A N/A N/A N/A error_msgs append N/A N/A _ '%s' not supplied to DracDriver. param N/A N/A UnicodeEncodeError N/A N/A N/A N/A error_msgs append N/A N/A _ '%s' contains non-ASCII symbol. param N/A N/A parsed_driver_info N/A drac_port N/A N/A driver_info get drac_port 443 N/A N/A N/A N/A parsed_driver_info N/A drac_path N/A str N/A N/A driver_info get drac_path /wsman N/A N/A N/A UnicodeEncodeError N/A N/A N/A N/A error_msgs append N/A _ 'drac_path' contains non-ASCII symbol. N/A N/A N/A N/A parsed_driver_info N/A drac_protocol N/A str N/A N/A driver_info get drac_protocol https N/A N/A N/A parsed_driver_info N/A drac_protocol N/A http https N/A N/A N/A N/A error_msgs append N/A _ 'drac_protocol' must be either 'http' or 'https'. N/A N/A N/A UnicodeEncodeError N/A N/A N/A N/A error_msgs append N/A _ 'drac_protocol' contains non-ASCII symbol. N/A error_msgs N/A N/A msg N/A N/A _ The following errors were encountered while parsing driver_info:
%s N/A N/A join error_msgs N/A N/A N/A exception InvalidParameterValue msg N/A port N/A parsed_driver_info N/A drac_port N/A N/A parsed_driver_info N/A drac_port N/A N/A utils validate_network_port port drac_port N/A parsed_driver_info N/A get_drac_client N/A N/A node N/A N/A N/A Returns a DRACClient object from python-dracclient library.

    :param node: an ironic node object.
    :returns: a DRACClient object.
    :raises: InvalidParameterValue if mandatory information is missing on the
             node or on invalid input.
     N/A driver_info N/A parse_driver_info node N/A client N/A N/A drac_client DRACClient N/A driver_info N/A drac_host N/A driver_info N/A drac_username N/A driver_info N/A drac_password N/A driver_info N/A drac_port N/A driver_info N/A drac_path N/A driver_info N/A drac_protocol N/A client N/A