Add interface name to dhcp config

This commit is contained in:
Eugene Bujak 2018-12-26 19:27:19 +03:00
parent 712493aafd
commit 73f71364b3

View file

@ -59,6 +59,7 @@ type dhcpState struct {
// field ordering is important -- yaml fields will mirror ordering from here
type dhcpConfig struct {
Enabled bool `json:"enabled" yaml:"enabled"`
InterfaceName string `json:"interface_name" yaml:"interface_name"` // eth0, en0 and so on
GatewayIP string `json:"gateway_ip" yaml:"gateway_ip"`
SubnetMask string `json:"subnet_mask" yaml:"subnet_mask"`
RangeStart string `json:"range_start" yaml:"range_start"`