Added test for onboot parameter

Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
Christian Goll
2025-02-20 15:16:31 +01:00
committed by Jonathon Anderson
parent fd8de8bfab
commit 4fcd12da40

View File

@@ -271,6 +271,54 @@ backupFile: true
writeFile: true
Filename: route-untagged.conf
# This file is autogenerated by warewulf
`,
},
"ifcfg:ifcfg.ww (onBoot)": {
nodes_conf: `
nodes:
node1:
primary network: untagged
network devices:
untagged:
onboot: false
device: eth0
tagged:
onboot: true
type: vlan
device: eth0.902
tags:
route1: "192.168.1.0/24,192.168.2.254"
`,
args: []string{"--render", "node1", "ifcfg", "etc/sysconfig/network-scripts/ifcfg.ww"},
log: `backupFile: true
writeFile: true
Filename: ifcfg-tagged.conf
# This file is autogenerated by warewulf
VLAN=yes
DEVICE=eth0.902
NAME=tagged
BOOTPROTO=static
DEVTIMEOUT=10
ONBOOT=true
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
backupFile: true
writeFile: true
Filename: ifcfg-untagged.conf
# This file is autogenerated by warewulf
TYPE=Ethernet
DEVICE=eth0
NAME=untagged
BOOTPROTO=static
DEVTIMEOUT=10
ONBOOT=false
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
`,
},
}