Move Firmware version call to use Redfish
Updates firmware store to use redfish api for bmc and host firmware
version.
Signed-off-by: Dixsie Wolmers <dixsie@ibm.com>
Change-Id: Ib545d62b5211d141307364c0e45a3462f85e9d90
diff --git a/src/views/Overview/Overview.vue b/src/views/Overview/Overview.vue
index 5d2ede5..76a062c 100644
--- a/src/views/Overview/Overview.vue
+++ b/src/views/Overview/Overview.vue
@@ -11,7 +11,7 @@
<b-col>
<dl>
<dt>{{ $t('pageOverview.firmwareVersion') }}</dt>
- <dd>{{ bmcActiveVersion }}</dd>
+ <dd>{{ bmcFirmwareVersion }}</dd>
</dl>
</b-col>
</b-row>
@@ -50,7 +50,7 @@
<b-col sm="6">
<dl>
<dt>{{ $t('pageOverview.firmwareVersion') }}</dt>
- <dd>{{ hostActiveVersion }}</dd>
+ <dd>{{ hostFirmwareVersion }}</dd>
</dl>
</b-col>
</b-row>
@@ -103,8 +103,8 @@
serverManufacturer: state => state.overview.serverManufacturer,
serverSerialNumber: state => state.overview.serverSerialNumber,
hostName: state => state.global.hostName,
- hostActiveVersion: state => state.firmware.hostActiveVersion,
- bmcActiveVersion: state => state.firmware.bmcActiveVersion,
+ hostFirmwareVersion: state => state.firmware.hostFirmwareVersion,
+ bmcFirmwareVersion: state => state.firmware.bmcFirmwareVersion,
powerConsumption: state => state.powerConsumption.powerConsumption,
powerCapValue: state => state.powerCap.powerCapValue
}),
@@ -115,7 +115,8 @@
getOverviewInfo() {
this.$store.dispatch('overview/getServerInfo');
this.$store.dispatch('global/getHostName');
- this.$store.dispatch('firmware/getFirmwareInfo');
+ this.$store.dispatch('firmware/getBmcFirmware');
+ this.$store.dispatch('firmware/getHostFirmware');
this.$store.dispatch('powerConsumption/getPowerData');
this.$store.dispatch('powerCap/getPowerCapData');
}