add type to network configs

This commit is contained in:
Christian Goll
2022-06-22 14:45:56 +02:00
parent 235c23c516
commit 1c850335ac
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ GATEWAY={{ $netdev.Gateway }}
{{ if $netdev.Hwaddr -}}
HWADDR={{ $netdev.Hwaddr }}
{{ end -}}
{{ if $netdev.Type -}}
TYPE={{ $netdev.Type }}
{{ end -}}
ONBOOT=yes
IPV6INIT=yes
IPV6_AUTOCONF=yes

View File

@@ -12,6 +12,9 @@ Source: {{ $source }}
-->
<interface origin="static generated warewulf config">
<name>{{$netdev.Device}}</name>
{{ if $netdev.Type -}}
<link-type>{{ $netdev.Type }}</link-type>
{{ end -}}
<control>
<mode>boot</mode>
</control>