The ironic_inspector.plugins.rules
Module¶
Standard plugins for rules API.
-
class
ironic_inspector.plugins.rules.
EmptyCondition
[source]¶ Bases:
ironic_inspector.plugins.base.RuleConditionPlugin
-
ALLOW_NONE
= True¶
-
REQUIRED_PARAMS
= set([])¶
-
-
class
ironic_inspector.plugins.rules.
EqCondition
[source]¶ Bases:
ironic_inspector.plugins.rules.SimpleCondition
-
op
()¶ eq(a, b) – Same as a==b.
-
-
class
ironic_inspector.plugins.rules.
ExtendAttributeAction
[source]¶ Bases:
ironic_inspector.plugins.base.RuleActionPlugin
-
FORMATTED_PARAMS
= [‘value’]¶
-
OPTIONAL_PARAMS
= set([‘unique’])¶
-
REQUIRED_PARAMS
= set([‘path’, ‘value’])¶
-
-
class
ironic_inspector.plugins.rules.
FailAction
[source]¶ Bases:
ironic_inspector.plugins.base.RuleActionPlugin
-
REQUIRED_PARAMS
= set([‘message’])¶
-
-
class
ironic_inspector.plugins.rules.
GeCondition
[source]¶ Bases:
ironic_inspector.plugins.rules.SimpleCondition
-
op
()¶ ge(a, b) – Same as a>=b.
-
-
class
ironic_inspector.plugins.rules.
GtCondition
[source]¶ Bases:
ironic_inspector.plugins.rules.SimpleCondition
-
op
()¶ gt(a, b) – Same as a>b.
-
-
class
ironic_inspector.plugins.rules.
LeCondition
[source]¶ Bases:
ironic_inspector.plugins.rules.SimpleCondition
-
op
()¶ le(a, b) – Same as a<=b.
-
-
class
ironic_inspector.plugins.rules.
LtCondition
[source]¶ Bases:
ironic_inspector.plugins.rules.SimpleCondition
-
op
()¶ lt(a, b) – Same as a<b.
-
-
class
ironic_inspector.plugins.rules.
NeCondition
[source]¶ Bases:
ironic_inspector.plugins.rules.SimpleCondition
-
op
()¶ ne(a, b) – Same as a!=b.
-
-
class
ironic_inspector.plugins.rules.
SetAttributeAction
[source]¶ Bases:
ironic_inspector.plugins.base.RuleActionPlugin
-
FORMATTED_PARAMS
= [‘value’]¶
-
REQUIRED_PARAMS
= set([‘path’, ‘value’])¶
-
-
class
ironic_inspector.plugins.rules.
SetCapabilityAction
[source]¶ Bases:
ironic_inspector.plugins.base.RuleActionPlugin
-
FORMATTED_PARAMS
= [‘value’]¶
-
OPTIONAL_PARAMS
= set([‘value’])¶
-
REQUIRED_PARAMS
= set([‘name’])¶
-
-
class
ironic_inspector.plugins.rules.
SimpleCondition
[source]¶ Bases:
ironic_inspector.plugins.base.RuleConditionPlugin
-
op
= None¶
-