Skip to content

Commit

Permalink
Add ValidateFirmware action and a task parameter for it
Browse files Browse the repository at this point in the history
  • Loading branch information
zevweiss committed Aug 12, 2024
1 parent fae194a commit 5478bc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions condition/server_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ const (

// PowerCycleBMC power cycles the BMC
PowerCycleBMC ServerControlAction = "power_cycle_bmc"

// Run a basic firmware test
ValidateFirmware ServerControlAction = "validate_firmware"
)

// ServerControlTaskParameters are the parameters that are passed for the ServerControl condition.
Expand Down Expand Up @@ -76,6 +79,10 @@ type ServerControlTaskParameters struct {
// For use with SetNextBootDevice action.
// Required: false
SetNextBootDeviceEFI bool `json:"set_next_boot_device_efi"`

// The timeout in seconds for a ValidateFirmware action
// Required for ValidateFirmware.
ValidateFirmwareTimeout uint `json:"validate_firmware_timeout"`
}

func (p *ServerControlTaskParameters) Unmarshal(r json.RawMessage) error {
Expand Down

0 comments on commit 5478bc5

Please sign in to comment.