Add enable/disable for DHCP server

This commit is contained in:
Ildar Kamalov
2018-12-13 14:38:00 +03:00
committed by Eugene Bujak
parent 96fbf7f134
commit d46b65f982
7 changed files with 27 additions and 64 deletions

View File

@@ -58,7 +58,7 @@ type dhcpState struct {
// field ordering is important -- yaml fields will mirror ordering from here
type dhcpConfig struct {
Enabled bool
Enabled bool `json:"enabled" yaml:"enabled"`
GatewayIP string `json:"gateway_ip" yaml:"gateway_ip"`
SubnetMask string `json:"subnet_mask" yaml:"subnet_mask"`
RangeStart string `json:"range_start" yaml:"range_start"`