The ironic_inspector.plugins.rules Module

Standard plugins for rules API.

class ironic_inspector.plugins.rules.ContainsCondition[source]

Bases: ironic_inspector.plugins.rules.ReCondition

check(node_info, field, params, **kwargs)[source]
class ironic_inspector.plugins.rules.EmptyCondition[source]

Bases: ironic_inspector.plugins.base.RuleConditionPlugin

ALLOW_NONE = True
REQUIRED_PARAMS = set([])
check(node_info, field, params, **kwargs)[source]
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(['value', 'path'])
apply(node_info, params, **kwargs)[source]
class ironic_inspector.plugins.rules.FailAction[source]

Bases: ironic_inspector.plugins.base.RuleActionPlugin

REQUIRED_PARAMS = set(['message'])
apply(node_info, params, **kwargs)[source]
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.MatchesCondition[source]

Bases: ironic_inspector.plugins.rules.ReCondition

check(node_info, field, params, **kwargs)[source]
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.NetCondition[source]

Bases: ironic_inspector.plugins.base.RuleConditionPlugin

check(node_info, field, params, **kwargs)[source]
validate(params, **kwargs)[source]
class ironic_inspector.plugins.rules.ReCondition[source]

Bases: ironic_inspector.plugins.base.RuleConditionPlugin

validate(params, **kwargs)[source]
class ironic_inspector.plugins.rules.SetAttributeAction[source]

Bases: ironic_inspector.plugins.base.RuleActionPlugin

FORMATTED_PARAMS = ['value']
REQUIRED_PARAMS = set(['value', 'path'])
apply(node_info, params, **kwargs)[source]
class ironic_inspector.plugins.rules.SetCapabilityAction[source]

Bases: ironic_inspector.plugins.base.RuleActionPlugin

FORMATTED_PARAMS = ['value']
OPTIONAL_PARAMS = set(['value'])
REQUIRED_PARAMS = set(['name'])
apply(node_info, params, **kwargs)[source]
class ironic_inspector.plugins.rules.SimpleCondition[source]

Bases: ironic_inspector.plugins.base.RuleConditionPlugin

check(node_info, field, params, **kwargs)[source]
op = None
ironic_inspector.plugins.rules.coerce(value, expected)[source]

Previous topic

The ironic_inspector.plugins.raid_device Module

Next topic

The ironic_inspector.plugins.standard Module

Project Source

This Page