DHCP -- Use uint64 for lease duration
This commit is contained in:
parent
a74c2248fb
commit
59adad4d53
|
@ -63,7 +63,7 @@ type dhcpConfig struct {
|
||||||
SubnetMask string `json:"subnet_mask" yaml:"subnet_mask"`
|
SubnetMask string `json:"subnet_mask" yaml:"subnet_mask"`
|
||||||
RangeStart string `json:"range_start" yaml:"range_start"`
|
RangeStart string `json:"range_start" yaml:"range_start"`
|
||||||
RangeEnd string `json:"range_end" yaml:"range_end"`
|
RangeEnd string `json:"range_end" yaml:"range_end"`
|
||||||
LeaseDuration time.Duration `json:"lease_duration" yaml:"lease_duration"`
|
LeaseDuration uint64 `json:"lease_duration" yaml:"lease_duration"` // in seconds
|
||||||
}
|
}
|
||||||
|
|
||||||
// field ordering is important -- yaml fields will mirror ordering from here
|
// field ordering is important -- yaml fields will mirror ordering from here
|
||||||
|
|
Loading…
Reference in New Issue