Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LocationIndicatorActive as a field in chassis #305

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions redfish/chassis.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,13 @@ type Chassis struct {
HeightMm float64
// IndicatorLED shall contain the indicator light state
// for the indicator light associated with this system.
// Deprecated v1.14+ in favor of LocationIndicatorActive property
IndicatorLED common.IndicatorLED
// Location shall contain location information of the
// associated chassis.
Location common.Location
// An indicator allowing an operator to physically locate this resource. (v1.14+)
iamsli marked this conversation as resolved.
Show resolved Hide resolved
LocationIndicatorActive bool
// Manufacturer shall contain the name of the
// organization responsible for producing the chassis. This organization
// might be the entity from whom the chassis is purchased, but this is
Expand Down Expand Up @@ -321,6 +324,7 @@ func (chassis *Chassis) Update() error {
readWriteFields := []string{
"AssetTag",
"IndicatorLED",
"LocationIndicatorActive",
}

originalElement := reflect.ValueOf(original).Elem()
Expand Down
Loading