Skip to content

Commit

Permalink
Add LocationIndicatorActive as a field in chassis (#305)
Browse files Browse the repository at this point in the history
Add LocationIndicatorActive as a field in chassis.
  • Loading branch information
iamsli authored Mar 6, 2024
1 parent 8718cff commit ae62fd6
Showing 1 changed file with 4 additions and 0 deletions.
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+)
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

0 comments on commit ae62fd6

Please sign in to comment.