make onboot default for network devices

Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
Christian Goll
2023-04-21 08:38:15 +02:00
parent 6428534dc3
commit 8b552fe5ca

View File

@@ -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