diff --git a/internal/pkg/node/constructors.go b/internal/pkg/node/constructors.go index 0619e912..1b44e454 100644 --- a/internal/pkg/node/constructors.go +++ b/internal/pkg/node/constructors.go @@ -37,7 +37,8 @@ defaultnode: dummy: device: eth0 type: ethernet - netmask: 255.255.255.0` + netmask: 255.255.255.0 + onboot: true` func init() { conf := warewulfconf.New() @@ -61,7 +62,6 @@ func New() (NodeYaml, error) { return Parse(data) } - // Parse constructs a new nodeDb object from an input YAML // document. Passes any errors return from yaml.Unmarshal. Returns an // error if any parsed value is not of a valid type for the given @@ -100,7 +100,6 @@ func Parse(data []byte) (NodeYaml, error) { return ret, nil } - /* Get all the nodes of a configuration. This function also merges the nodes with the given profiles and set the default values