Skip to content

Add regex/exist check to RedfishEndpointPlugin, allow connection manager override - #328

Open
amd-ansonyim wants to merge 4 commits into
developmentfrom
amc_redfish_extension
Open

amd-ansonyim wants to merge 4 commits into
developmentfrom
amc_redfish_extension

Conversation

@amd-ansonyim

Copy link
Copy Markdown
Collaborator

Summary

  • RedfishEndpointPlugin analyzer: new 'regex' and 'exists' constraint keys
  • PluginExecutor: plugin config 'connection' key allows plugin to override default connection manager (i.e using RedfishEndpoint on RedfishSshProxyConnectionManager)
  • Tests for the new constraints, the override, and RedfishEndpointPlugin over the SSH proxy

Test plan

  • pytest test/unit
  • pytest test/functional (if applicable)
  • pre-commit run --all-files

Checklist

  • Added/updated tests (or explained why not)
  • Updated docs/README if behavior changed
  • No secrets or credentials committed

…ction override

- RedfishEndpointPlugin analyzer: new 'regex' and 'exists' constraint keys
- PluginExecutor: plugin config 'connection' key selects a configured connection
  manager by name (e.g. RedfishSshProxyConnectionManager) instead of CONNECTION_TYPE
- Tests for the new constraints, the override, and RedfishEndpointPlugin over the SSH proxy
Redfish plugins (CONNECTION_TYPE = RedfishConnectionManager) now pick their transport from
the connection config:
- RedfishConnectionManager present: use it (also when both are present)
- only RedfishSshProxyConnectionManager present: use the SSH proxy
- neither present: skip the plugin with an error
The plugin config 'connection' key still forces a specific manager. OOB SSH plugins are
unchanged. Adds config/connection-config_redfish_ssh_proxy.example.json and README docs.
…om connection config

Redfish plugins choose their connection only from the connection config:
- RedfishConnectionManager present (alone or with the proxy): direct Redfish
- only RedfishSshProxyConnectionManager present: SSH proxy
- neither present: plugin skipped with an error
Plugins whose CONNECTION_TYPE is RedfishSshProxyConnectionManager always use the proxy.
The plugin config 'connection' key is removed.
The README section documents the connection block inline.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation plugins-ooband tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant