Fixups for NodeDB
This commit is contained in:
@@ -147,6 +147,7 @@ func (self *nodeYaml) FindAllControllers() ([]ControllerInfo, error) {
|
|||||||
|
|
||||||
c.Id = controllername
|
c.Id = controllername
|
||||||
c.Ipaddr = controller.Ipaddr
|
c.Ipaddr = controller.Ipaddr
|
||||||
|
//TODO: Is there a better way to do this, cause EWWW!
|
||||||
c.Services = struct {
|
c.Services = struct {
|
||||||
Warewulfd struct {
|
Warewulfd struct {
|
||||||
Port string
|
Port string
|
||||||
@@ -157,6 +158,7 @@ func (self *nodeYaml) FindAllControllers() ([]ControllerInfo, error) {
|
|||||||
}
|
}
|
||||||
Dhcp struct {
|
Dhcp struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
|
Template string
|
||||||
RangeStart string
|
RangeStart string
|
||||||
RangeEnd string
|
RangeEnd string
|
||||||
ConfigFile string
|
ConfigFile string
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ type ControllerConf struct {
|
|||||||
} `yaml:"warewulf"`
|
} `yaml:"warewulf"`
|
||||||
Dhcp struct {
|
Dhcp struct {
|
||||||
Enabled bool `yaml:"enabled,omitempty"`
|
Enabled bool `yaml:"enabled,omitempty"`
|
||||||
|
Template string `yaml:"template,omitempty"`
|
||||||
RangeStart string `yaml:"range start,omitempty"`
|
RangeStart string `yaml:"range start,omitempty"`
|
||||||
RangeEnd string `yaml:"range end,omitempty"`
|
RangeEnd string `yaml:"range end,omitempty"`
|
||||||
ConfigFile string `yaml:"config file,omitempty"`
|
ConfigFile string `yaml:"config file,omitempty"`
|
||||||
@@ -102,6 +103,7 @@ type NodeConf struct {
|
|||||||
|
|
||||||
type NetDevs struct {
|
type NetDevs struct {
|
||||||
Type string `yaml:"type,omitempty"`
|
Type string `yaml:"type,omitempty"`
|
||||||
|
Default bool `yaml:"default"`
|
||||||
Hwaddr string
|
Hwaddr string
|
||||||
Ipaddr string
|
Ipaddr string
|
||||||
Netmask string
|
Netmask string
|
||||||
@@ -158,6 +160,7 @@ type ControllerInfo struct {
|
|||||||
}
|
}
|
||||||
Dhcp struct {
|
Dhcp struct {
|
||||||
Enabled bool
|
Enabled bool
|
||||||
|
Template string
|
||||||
RangeStart string
|
RangeStart string
|
||||||
RangeEnd string
|
RangeEnd string
|
||||||
ConfigFile string
|
ConfigFile string
|
||||||
|
|||||||
Reference in New Issue
Block a user