Set SLAVE=yes in ifcfg files when MASTER is set
- Fixes: #1980 Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -282,6 +282,7 @@ writeFile: true
|
||||
Filename: ifcfg-en1.conf
|
||||
# This file is autogenerated by warewulf
|
||||
TYPE=Ethernet
|
||||
SLAVE=yes
|
||||
MASTER=bond0
|
||||
DEVICE=en1
|
||||
NAME=en1
|
||||
@@ -298,6 +299,7 @@ writeFile: true
|
||||
Filename: ifcfg-en2.conf
|
||||
# This file is autogenerated by warewulf
|
||||
TYPE=Ethernet
|
||||
SLAVE=yes
|
||||
MASTER=bond0
|
||||
DEVICE=en2
|
||||
NAME=en2
|
||||
|
||||
@@ -7,6 +7,7 @@ VLAN=yes
|
||||
TYPE={{ default "Ethernet" $netdev.Type }}
|
||||
{{- end }}
|
||||
{{- if $netdev.Tags.master }}
|
||||
SLAVE=yes
|
||||
MASTER={{ $netdev.Tags.master }}
|
||||
{{- end }}
|
||||
{{- if $netdev.Device }}
|
||||
|
||||
Reference in New Issue
Block a user