ironic_inspector.rules
Module¶Support for introspection rules.
ironic_inspector.rules.
IntrospectionRule
(uuid, conditions, actions, description)[source]¶Bases: object
High-level class representing an introspection rule.
apply_actions
(node_info, data=None)[source]¶Run actions on a node.
Parameters: |
|
---|
check_conditions
(node_info, data)[source]¶Check if conditions are true for a given node.
Parameters: |
|
---|---|
Returns: | True if conditions match, otherwise False |
description
¶ironic_inspector.rules.
create
(conditions_json, actions_json, uuid=None, description=None)[source]¶Create a new rule in database.
Parameters: |
|
---|---|
Returns: | new IntrospectionRule object |
Raises: | utils.Error on failure |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.