From f7aa7f9c8abe8480edfdf758ec25b26032e759a2 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Mon, 27 Apr 2020 10:12:15 -0700 Subject: Remove hostname D-Bus request Hostname is available in NetworkSettingsStore using redfish api. Signed-off-by: Yoshie Muranaka Change-Id: I26c26281ca8d9003d2daaed13d6bbd4db6ed700c --- src/locales/en-US.json | 1 - src/store/modules/GlobalStore.js | 12 ------------ .../Control/ServerPowerOperations/ServerPowerOperations.vue | 12 +----------- src/views/Overview/Overview.vue | 2 -- 4 files changed, 1 insertion(+), 26 deletions(-) (limited to 'src') diff --git a/src/locales/en-US.json b/src/locales/en-US.json index d44cc072..d62ff326 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -238,7 +238,6 @@ }, "pageServerPowerOperations": { "currentStatus": "Current status", - "hostname": "Hostname", "hostOsBootSettings": "Host OS boot settings", "hostStatus": "Host status", "immediateReboot": "Immediate – Server reboots without OS shutting down; may cause data corruption", diff --git a/src/store/modules/GlobalStore.js b/src/store/modules/GlobalStore.js index 83b5432e..c9e92a76 100644 --- a/src/store/modules/GlobalStore.js +++ b/src/store/modules/GlobalStore.js @@ -27,31 +27,19 @@ const hostStateMapper = hostState => { const GlobalStore = { namespaced: true, state: { - hostName: '--', bmcTime: null, hostStatus: 'unreachable' }, getters: { - hostName: state => state.hostName, hostStatus: state => state.hostStatus, bmcTime: state => state.bmcTime }, mutations: { - setHostName: (state, hostName) => (state.hostName = hostName), setBmcTime: (state, bmcTime) => (state.bmcTime = bmcTime), setHostStatus: (state, hostState) => (state.hostStatus = hostStateMapper(hostState)) }, actions: { - getHostName({ commit }) { - api - .get('/xyz/openbmc_project/network/config/attr/HostName') - .then(response => { - const hostName = response.data.data; - commit('setHostName', hostName); - }) - .catch(error => console.log(error)); - }, getBmcTime({ commit }) { api .get('/redfish/v1/Managers/bmc') diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue index 4efaebc6..01fc661e 100644 --- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue +++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue @@ -1,15 +1,11 @@