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/store/modules/GlobalStore.js | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/store') 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') -- cgit v1.2.3