Skip to content

bmclib client to filter for compatible drivers #9

@joelrebel

Description

@joelrebel

Raising this as an issue to point out, it would be ideal if this used the FilterForCompatible method
here

client.Registry.Drivers = client.Registry.PreferDriver("gofish")

This way the BMC is 'probed' for compatibility and only drivers known to be working with the BMC will be attempted
when the caller invokes the client methods.

drivers := client.Registry.FilterForCompatible(ctx)
if len(drivers) == 0 {
  return nil, errors.New("no compatible bmclib drivers found")
}

client.Registry.Drivers = drivers

I understand the redfish driver is hardcoded at the moment, so whenever that is changed I suggest using the filter method above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions