Dummy Plugin Design
Motivation
The dummy plugin has done a lot of good for OpenHPI enablement, but it is showing its age. The plugin is largely a set of static declarations. While that made it easy to produce originally, it makes it hard to maintain, and hard to add new function to.
In addition, having seen the level of regresion testing that can be accomplished using the Blade Center Simulator, a fully injectable dummy plugin would allow extensive regression testing of the OpenHPI library. This would ensure that all edge cases were tested for the library.
Initialization
The first major change that needs to happen is in initialization of data structures. Right now this is done staticly, and it should be done via a more dynamic mechanism. The flow would go like follows:
- Init Handler State
- Init Resources (in the RPTable in Handler State)
- Build a number of resources of various types (we'll model a full rack)
- Attach RDRs to it
- Discovery generates a full RPTable dump
