Update network interface bonding configuration and documentation

- Closes: #1482
- Closes: #1280

This also corrects poor handling of whitespace around the "file" function
throughout the templates, given experiences with the network templates while
implementing the bond behavior. Since the file function actually does produce
output (that is parsed by Warewulf itself) it should not collaps prefix
whitespace.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2025-01-20 19:50:29 -07:00
parent 409b7269a7
commit c209dadc1f
20 changed files with 103 additions and 88 deletions

View File

@@ -52,6 +52,7 @@ func Test_wickedOverlay(t *testing.T) {
const debian_interfaces string = `backupFile: true
writeFile: true
Filename: default
# This file is autogenerated by warewulf
allow-hotplug wwnet0
iface wwnet0 inet static
@@ -59,6 +60,7 @@ iface wwnet0 inet static
netmask 255.255.255.0
gateway 192.168.3.1
mtu 1500
backupFile: true
writeFile: true
Filename: secondary

View File

@@ -1,5 +1,5 @@
{{- range $devname, $netdev := .ThisNode.NetDevs }}
{{- file $devname }}
{{ file $devname }}
# This file is autogenerated by warewulf
{{- if $netdev.OnBoot }}
auto {{ $netdev.Device }}