From ae62fd60f01d8fe2827a51f3d33b2bf0386db283 Mon Sep 17 00:00:00 2001 From: Sandy Li <47486464+iamsli@users.noreply.github.com> Date: Wed, 6 Mar 2024 16:30:11 -0500 Subject: [PATCH] Add LocationIndicatorActive as a field in chassis (#305) Add LocationIndicatorActive as a field in chassis. --- redfish/chassis.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/redfish/chassis.go b/redfish/chassis.go index c9260df7..be130bdd 100644 --- a/redfish/chassis.go +++ b/redfish/chassis.go @@ -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 @@ -321,6 +324,7 @@ func (chassis *Chassis) Update() error { readWriteFields := []string{ "AssetTag", "IndicatorLED", + "LocationIndicatorActive", } originalElement := reflect.ValueOf(original).Elem()