summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Lysak <v.lysak@dunice.net>2022-08-17 17:01:42 +0300
committerVitalii Lysak <v.lysak@dunice.net>2022-08-17 17:01:42 +0300
commitc1407327f732565819d73fe6b8fbf50c3871e500 (patch)
tree66b212c91a44b79e9644e765a066dc8c1a8ebb70
parentf5cb8a417cc7c2c4a184f6b08dc3516d7685a2ff (diff)
downloadwebui-vue-c1407327f732565819d73fe6b8fbf50c3871e500.tar.xz
SILABMC-256: critical req upd
-rw-r--r--src/components/_sila/Global/Chart.vue1
-rw-r--r--src/store/modules/HardwareStatus/MemoryStore.js12
-rw-r--r--src/store/modules/HardwareStatus/ProcessorStore.js12
3 files changed, 23 insertions, 2 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue
index f68cb140..19491f68 100644
--- a/src/components/_sila/Global/Chart.vue
+++ b/src/components/_sila/Global/Chart.vue
@@ -194,6 +194,7 @@ export default {
case 'fans':
case 'processors':
case 'power':
+ case 'memory':
plotLines.push({
color: '#E11717',
dashStyle: 'solid',
diff --git a/src/store/modules/HardwareStatus/MemoryStore.js b/src/store/modules/HardwareStatus/MemoryStore.js
index ae30752d..21e07598 100644
--- a/src/store/modules/HardwareStatus/MemoryStore.js
+++ b/src/store/modules/HardwareStatus/MemoryStore.js
@@ -70,7 +70,7 @@ const MemoryStore = {
},
},
actions: {
- async patchLimits({ dispatch }, { warning, groups }) {
+ async patchLimits({ dispatch }, { warning, critical, groups }) {
return await api
.patch('/redfish/v1/Chassis/SILA_Baseboard/Thermal', {
Temperatures: groups.map((group) => {
@@ -80,6 +80,16 @@ const MemoryStore = {
};
}),
})
+ .then(async () => {
+ return await api.patch('/redfish/v1/Chassis/SILA_Baseboard/Thermal', {
+ Temperatures: groups.map((group) => {
+ return {
+ MemberId: group,
+ UpperThresholdCritical: critical,
+ };
+ }),
+ });
+ })
.catch((error) => {
console.log(error);
throw new Error(i18n.t('pageMemory.toast.errorLimitUpdate'));
diff --git a/src/store/modules/HardwareStatus/ProcessorStore.js b/src/store/modules/HardwareStatus/ProcessorStore.js
index 9dede45e..e270ed12 100644
--- a/src/store/modules/HardwareStatus/ProcessorStore.js
+++ b/src/store/modules/HardwareStatus/ProcessorStore.js
@@ -86,7 +86,7 @@ const ProcessorStore = {
},
},
actions: {
- async patchLimitsTemp({ dispatch }, { warning, groups }) {
+ async patchLimitsTemp({ dispatch }, { warning, critical, groups }) {
return await api
.patch('/redfish/v1/Chassis/SILA_Baseboard/Thermal', {
Temperatures: groups.map((group) => {
@@ -96,6 +96,16 @@ const ProcessorStore = {
};
}),
})
+ .then(async () => {
+ return await api.patch('/redfish/v1/Chassis/SILA_Baseboard/Thermal', {
+ Temperatures: groups.map((group) => {
+ return {
+ MemberId: group,
+ UpperThresholdCritical: critical,
+ };
+ }),
+ });
+ })
.catch((error) => {
console.log(error);
throw new Error(i18n.t('pageProcessor.toast.errorLimitUpdate'));