summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Tsyganova <ATSyganova@IBS.RU>2022-08-17 17:56:25 +0300
committerAnna Tsyganova <ATSyganova@IBS.RU>2022-08-17 17:56:25 +0300
commitf82723a6720ebda943e882f3ef3f297e2f416a38 (patch)
tree9be4ecd3e65dee4cf2dd96ffc03f6725d988e64f
parente7a25cdb98c94b46939ec58344c07bbe2480164d (diff)
parentb7691ca4cf12a658d19748dcc243f584a69666f8 (diff)
downloadwebui-vue-f82723a6720ebda943e882f3ef3f297e2f416a38.tar.xz
Merge branch 'sila' of git.sila.ru:pub/openbmc/webui-vue into sila
-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'));