Closed chu11 closed 7 months ago
ok, re-worked this PR (and the PR series) to use a broken out "plugs" module. Now all plugs data is in the struct plugs_data
struct and many of the functions are now in the "plugs" module.
Looking at what comes next, it might simplify the code a little if this were structured like a true class, e.g. with create/destroy functions. Then you wouldn't need to keep a flag to remember if plugs were initialized (just set to object to NULL) or have a "destructor" that removes plugs while iterating the hostlist. Just a thought.
re-pushed, making the plugs
module more like a class. i'll rebase follow on PRs later.
Problem: Redfishpower was originally written with only "hosts" in mind, however the correct terminology is for powerman devices to operate with "plugs". In most cases, redfishpower "hosts" are simply the same names as the "plugs".
Internally refactor everything to operate on "plugs". This refactor includes:
This PR now precedes #157