diff options
author | Kenneth Fullbright <kennyneedsmilky@gmail.com> | 2021-12-21 02:01:31 +0300 |
---|---|---|
committer | Dixsie Wolmers <dixsiew@gmail.com> | 2022-01-07 19:46:42 +0300 |
commit | d600bb52cd7e71543932cdd30892f6dc9bb6d740 (patch) | |
tree | 3f97980626f20f741677c1ed35427f0b02549aac /src/store | |
parent | c2c53aa9048ecc2d26e6b0a92b0e55511377cf97 (diff) | |
download | webui-vue-d600bb52cd7e71543932cdd30892f6dc9bb6d740.tar.xz |
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
Diffstat (limited to 'src/store')
-rw-r--r-- | src/store/modules/HardwareStatus/AssemblyStore.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/store/modules/HardwareStatus/AssemblyStore.js b/src/store/modules/HardwareStatus/AssemblyStore.js index 56e5631d..fe97a9c8 100644 --- a/src/store/modules/HardwareStatus/AssemblyStore.js +++ b/src/store/modules/HardwareStatus/AssemblyStore.js @@ -46,8 +46,14 @@ const AssemblyStore = { async updateIdentifyLedValue({ dispatch }, led) { const uri = led.uri; const updatedIdentifyLedValue = { - LocationIndicatorActive: led.identifyLed, + Assemblies: [ + { + MemberId: led.memberId, + LocationIndicatorActive: led.identifyLed, + }, + ], }; + return await api.patch(uri, updatedIdentifyLedValue).catch((error) => { dispatch('getAssemblyInfo'); console.log('error', error); |