Fixed Assembly table Identify LED switches
Identify LED should toggle on/off successfully
Rewrote the patch code to work with the Redfish schema
Set LocationIndicatorActive to true:
curl -k -H "X-Auth-Token: $token" -X PATCH -d '
{
"Assemblies":[
{"MemberId" : "0", "LocationIndicatorActive":true},
{"MemberId": "1", "LocationIndicatorActive":true}
]
}'
https://${bmc}/redfish/v1/Chassis/chassis/Assembly
MemberId is required to reference which assembly LED to toggle
Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com>
Change-Id: Id0a3cf4dc533f6a0205be9fd037b13f92647cc00
diff --git a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue
index 6856369..afc1470 100644
--- a/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue
+++ b/src/views/HardwareStatus/Inventory/InventoryTableAssembly.vue
@@ -137,6 +137,7 @@
this.$store
.dispatch('assemblies/updateIdentifyLedValue', {
uri: row.uri,
+ memberId: row.id,
identifyLed: row.identifyLed,
})
.catch(({ message }) => this.errorToast(message));