UI for DHCP interfaces

This commit is contained in:
Ildar Kamalov
2018-12-24 11:48:23 +03:00
committed by Eugene Bujak
parent 1270bbad1a
commit 712493aafd
9 changed files with 139 additions and 4 deletions

View File

@@ -272,6 +272,17 @@ const dhcp = handleActions({
return newState;
},
[actions.getDhcpInterfacesRequest]: state => ({ ...state, processingInterfaces: true }),
[actions.getDhcpInterfacesFailure]: state => ({ ...state, processingInterfaces: false }),
[actions.getDhcpInterfacesSuccess]: (state, { payload }) => {
const newState = {
...state,
interfaces: payload,
processingInterfaces: false,
};
return newState;
},
[actions.findActiveDhcpRequest]: state => ({ ...state, processingStatus: true }),
[actions.findActiveDhcpFailure]: state => ({ ...state, processingStatus: false }),
[actions.findActiveDhcpSuccess]: (state, { payload }) => ({
@@ -289,6 +300,7 @@ const dhcp = handleActions({
}, {
processing: true,
processingStatus: false,
processingInterfaces: false,
config: {
enabled: false,
},