-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Removed TFTP server firmware update ability in the UI. Signed-off-by: Nikhil Ashoka <[email protected]> Change-Id: Icbeddc7a3faa262f12e85268206ae70850f37905
- Loading branch information
1 parent
210b127
commit bc49e09
Showing
4 changed files
with
4 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,8 @@ const FirmwareStore = { | |
hostActiveFirmwareId: null, | ||
applyTime: null, | ||
httpPushUri: null, | ||
tftpAvailable: false, | ||
}, | ||
getters: { | ||
isTftpUploadAvailable: (state) => state.tftpAvailable, | ||
isSingleFileUploadEnabled: (state) => state.hostFirmware.length === 0, | ||
activeBmcFirmware: (state) => { | ||
return state.bmcFirmware.find( | ||
|
@@ -43,8 +41,6 @@ const FirmwareStore = { | |
setHostFirmware: (state, firmware) => (state.hostFirmware = firmware), | ||
setApplyTime: (state, applyTime) => (state.applyTime = applyTime), | ||
setHttpPushUri: (state, httpPushUri) => (state.httpPushUri = httpPushUri), | ||
setTftpUploadAvailable: (state, tftpAvailable) => | ||
(state.tftpAvailable = tftpAvailable), | ||
}, | ||
actions: { | ||
async getFirmwareInformation({ dispatch }) { | ||
|
@@ -111,16 +107,9 @@ const FirmwareStore = { | |
.then(({ data }) => { | ||
const applyTime = | ||
data.HttpPushUriOptions.HttpPushUriApplyTime.ApplyTime; | ||
const allowableActions = | ||
data?.Actions?.['#UpdateService.SimpleUpdate']?.[ | ||
'[email protected]' | ||
]; | ||
commit('setApplyTime', applyTime); | ||
const httpPushUri = data.HttpPushUri; | ||
commit('setHttpPushUri', httpPushUri); | ||
if (allowableActions?.includes('TFTP')) { | ||
commit('setTftpUploadAvailable', true); | ||
} | ||
}) | ||
.catch((error) => console.log(error)); | ||
}, | ||
|
@@ -134,21 +123,6 @@ const FirmwareStore = { | |
throw new Error(i18n.t('pageFirmware.toast.errorUpdateFirmware')); | ||
}); | ||
}, | ||
async uploadFirmwareTFTP(fileAddress) { | ||
const data = { | ||
TransferProtocol: 'TFTP', | ||
ImageURI: fileAddress, | ||
}; | ||
return await api | ||
.post( | ||
'/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate', | ||
data, | ||
) | ||
.catch((error) => { | ||
console.log(error); | ||
throw new Error(i18n.t('pageFirmware.toast.errorUpdateFirmware')); | ||
}); | ||
}, | ||
async switchBmcFirmwareAndReboot({ getters }) { | ||
const backupLocation = getters.backupBmcFirmware.location; | ||
const data = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters