Skip to content

Commit

Permalink
Merge pull request #379 from bmc-toolbox/dell-bmc-reset
Browse files Browse the repository at this point in the history
providers/dell: implement the BMCResetter interface
  • Loading branch information
joelrebel authored Dec 6, 2023
2 parents 764ac9e + 721d315 commit 4d960aa
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)
}

// 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 4d960aa

Please sign in to comment.