From ecaecc164f6434ea719864dc7a8d50292ad3d41d Mon Sep 17 00:00:00 2001 From: Sandy Li Date: Wed, 6 Mar 2024 16:02:55 -0500 Subject: [PATCH 1/2] Add LocationIndicatorActive as a field in chassis --- redfish/chassis.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redfish/chassis.go b/redfish/chassis.go index c9260df7..dd00ae6e 100644 --- a/redfish/chassis.go +++ b/redfish/chassis.go @@ -187,6 +187,8 @@ type Chassis struct { // 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 +323,7 @@ func (chassis *Chassis) Update() error { readWriteFields := []string{ "AssetTag", "IndicatorLED", + "LocationIndicatorActive", } originalElement := reflect.ValueOf(original).Elem() From e62882e783c16592ec62e2da389e1143b66fc274 Mon Sep 17 00:00:00 2001 From: Sandy Li Date: Wed, 6 Mar 2024 16:25:09 -0500 Subject: [PATCH 2/2] Add IndicatorLED deprecation note --- redfish/chassis.go | 1 + 1 file changed, 1 insertion(+) diff --git a/redfish/chassis.go b/redfish/chassis.go index dd00ae6e..be130bdd 100644 --- a/redfish/chassis.go +++ b/redfish/chassis.go @@ -183,6 +183,7 @@ 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.