Add Firmware page
Adds ability to upload a fimware image by local workstation
or TFTP. Also adds ability to reboot BMC from the backup image.
- Add route definition, component view, and store for
Firmware page
- Get ActiveSoftwareImage location at /redfish/v1/Managers/bmc
- Get backup by checking for an image id that is not the same as
the active image /redfish/v1/UpdateService/FirmwareInventory
- Switch running firmware image by making PATCH request to
/redfish/v1/Managers/bmc
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I04450e5a170d374122908c4c0349ba3b6e93ed2c
diff --git a/src/views/Overview/Overview.vue b/src/views/Overview/Overview.vue
index 46944cc..ac48481 100644
--- a/src/views/Overview/Overview.vue
+++ b/src/views/Overview/Overview.vue
@@ -106,7 +106,7 @@
mixins: [LoadingBarMixin],
computed: mapState({
server: state => state.system.systems[0],
- bmcFirmwareVersion: state => state.firmware.bmcFirmwareVersion,
+ bmcFirmwareVersion: state => state.firmware.activeFirmware.version,
powerCapValue: state => state.powerControl.powerCapValue,
powerConsumptionValue: state => state.powerControl.powerConsumptionValue,
serverManufacturer() {
@@ -139,7 +139,7 @@
});
Promise.all([
this.$store.dispatch('system/getSystem'),
- this.$store.dispatch('firmware/getBmcFirmware'),
+ this.$store.dispatch('firmware/getSystemFirwareVersion'),
this.$store.dispatch('powerControl/getPowerControl'),
quicklinksPromise,
networkPromise,