Revert NetDevs.Manual back to NetDevs.OnBoot

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2024-10-17 22:55:31 -04:00
parent adb54a870d
commit bb5d1d17ed
9 changed files with 19 additions and 14 deletions

View File

@@ -4,12 +4,14 @@ nodes:
network devices:
default:
device: wwnet0
onboot: true
hwaddr: e6:92:39:49:7b:03
ipaddr: 192.168.3.21
netmask: 255.255.255.0
gateway: 192.168.3.1
secondary:
device: wwnet1
onboot: true
hwaddr: 9a:77:29:73:14:f1
ipaddr: 192.168.3.22
netmask: 255.255.255.0

View File

@@ -13,7 +13,9 @@ master={{ $master }}
type=ethernet
{{ else -}}
type={{if $netdev.Type}}{{ $netdev.Type }}{{ else }}ethernet{{end}}
autoconnect={{ if $netdev.Manual }}false{{else}}true{{end}}
{{ if or $netdev.OnBoot (eq $netdev.OnBoot nil) -}}
autoconnect=true
{{ end -}}
{{ end -}}
{{ if $netdev.Hwaddr -}}
{{ if or (eq $netdev.Type "ethernet") (not $netdev.Type ) -}}