Return OnBoot to wwtype.WWbool

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-11-04 16:41:02 -07:00
parent a7325b6ffa
commit 8a602e8a76
11 changed files with 13 additions and 11 deletions

View File

@@ -53,7 +53,6 @@ const debian_interfaces string = `backupFile: true
writeFile: true
Filename: default
# This file is autogenerated by warewulf
auto wwnet0
allow-hotplug wwnet0
iface wwnet0 inet static
address 192.168.3.21
@@ -64,7 +63,6 @@ backupFile: true
writeFile: true
Filename: secondary
# This file is autogenerated by warewulf
auto wwnet1
allow-hotplug wwnet1
iface wwnet1 inet static
address 192.168.3.22

View File

@@ -1,7 +1,7 @@
{{- range $devname, $netdev := .ThisNode.NetDevs }}
{{- file $devname }}
# This file is autogenerated by warewulf
{{- if or $netdev.OnBoot (eq $netdev.OnBoot nil) }}
{{- if $netdev.OnBoot }}
auto {{ $netdev.Device }}
{{- end }}
allow-hotplug {{ $netdev.Device }}