DHCP -- Use uint64 for lease duration

This commit is contained in:
Eugene Bujak 2018-12-13 14:51:35 +03:00
parent a74c2248fb
commit 59adad4d53

View file

@ -58,12 +58,12 @@ type dhcpState struct {
// field ordering is important -- yaml fields will mirror ordering from here
type dhcpConfig struct {
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"`
RangeEnd string `json:"range_end" yaml:"range_end"`
LeaseDuration time.Duration `json:"lease_duration" yaml:"lease_duration"`
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"`
RangeEnd string `json:"range_end" yaml:"range_end"`
LeaseDuration uint64 `json:"lease_duration" yaml:"lease_duration"` // in seconds
}
// field ordering is important -- yaml fields will mirror ordering from here