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
client/src/api

View file

@ -307,12 +307,18 @@ export default class Api {
DHCP_STATUS = { path: 'dhcp/status', method: 'GET' };
DHCP_SET_CONFIG = { path: 'dhcp/set_config', method: 'POST' };
DHCP_FIND_ACTIVE = { path: 'dhcp/find_active_dhcp', method: 'POST' };
DHCP_INTERFACES = { path: 'dhcp/interfaces', method: 'GET' };
getDhcpStatus() {
const { path, method } = this.DHCP_STATUS;
return this.makeRequest(path, method);
}
getDhcpInterfaces() {
const { path, method } = this.DHCP_INTERFACES;
return this.makeRequest(path, method);
}
setDhcpConfig(config) {
const { path, method } = this.DHCP_SET_CONFIG;
const parameters = {