ironic_inspector.plugins.example module

Example plugin.

class ironic_inspector.plugins.example.ExampleProcessingHook[source]

Bases: ProcessingHook

before_processing(introspection_data, **kwargs)[source]

Hook to run before any other data processing.

This hook is run even before sanity checks.

Parameters:
  • introspection_data – raw information sent by the ramdisk, may be modified by the hook.

  • kwargs – used for extensibility without breaking existing hooks

Returns:

nothing.

before_update(introspection_data, node_info, **kwargs)[source]

Hook to run before Ironic node update.

This hook is run after node is found and ports are created, just before the node is updated with the data.

Parameters:
  • introspection_data – processed data from the ramdisk.

  • node_info – NodeInfo instance.

  • kwargs – used for extensibility without breaking existing hooks.

Returns:

nothing.

[RFC 6902] - http://tools.ietf.org/html/rfc6902

class ironic_inspector.plugins.example.ExampleRuleAction[source]

Bases: RuleActionPlugin

apply(node_info, params, **kwargs)[source]

Run action on successful rule match.

Parameters:
  • node_info – NodeInfo object

  • params – parameters as a dictionary

  • kwargs – used for extensibility without breaking existing plugins

Raises:

utils.Error on failure

ironic_inspector.plugins.example.example_not_found_hook(introspection_data, **kwargs)[source]