Skip to content

Commit

Permalink
providers/dell: implement the BMCResetter interface
Browse files Browse the repository at this point in the history
  • Loading branch information
joelrebel committed Dec 6, 2023
1 parent 764ac9e commit 721d315
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion providers/dell/idrac.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ var (
providers.FeatureFirmwareUploadInitiateInstall,
providers.FeatureFirmwareTaskStatus,
providers.FeatureInventoryRead,
providers.FeatureBmcReset,
}

errManufacturerUnknown = errors.New("error identifying device manufacturer")
)

type Config struct {
Expand Down Expand Up @@ -211,7 +214,10 @@ func (c *Conn) Inventory(ctx context.Context) (device *common.Device, err error)
return c.redfishwrapper.Inventory(ctx, false)
}

var errManufacturerUnknown = errors.New("error identifying device manufacturer")
// BmcReset power cycles the BMC
func (c *Conn) BmcReset(ctx context.Context, resetType string) (ok bool, err error) {
return c.redfishwrapper.BMCReset(ctx, resetType)

Check warning on line 219 in providers/dell/idrac.go

View check run for this annotation

Codecov / codecov/patch

providers/dell/idrac.go#L218-L219

Added lines #L218 - L219 were not covered by tests
}

// deviceManufacturer returns the device manufacturer and model attributes
func (c *Conn) deviceManufacturer(ctx context.Context) (vendor string, err error) {
Expand Down

0 comments on commit 721d315

Please sign in to comment.