Merge pull request #465 from mslacken/type

add type to network configs
This commit is contained in:
Christian Goll
2022-06-24 09:48:37 +02:00
committed by GitHub
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>