make onboot default for network devices
Signed-off-by: Christian Goll <cgoll@suse.de>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user