add type to network configs
This commit is contained in:
@@ -20,6 +20,9 @@ GATEWAY={{ $netdev.Gateway }}
|
|||||||
{{ if $netdev.Hwaddr -}}
|
{{ if $netdev.Hwaddr -}}
|
||||||
HWADDR={{ $netdev.Hwaddr }}
|
HWADDR={{ $netdev.Hwaddr }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
{{ if $netdev.Type -}}
|
||||||
|
TYPE={{ $netdev.Type }}
|
||||||
|
{{ end -}}
|
||||||
ONBOOT=yes
|
ONBOOT=yes
|
||||||
IPV6INIT=yes
|
IPV6INIT=yes
|
||||||
IPV6_AUTOCONF=yes
|
IPV6_AUTOCONF=yes
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ Source: {{ $source }}
|
|||||||
-->
|
-->
|
||||||
<interface origin="static generated warewulf config">
|
<interface origin="static generated warewulf config">
|
||||||
<name>{{$netdev.Device}}</name>
|
<name>{{$netdev.Device}}</name>
|
||||||
|
{{ if $netdev.Type -}}
|
||||||
|
<link-type>{{ $netdev.Type }}</link-type>
|
||||||
|
{{ end -}}
|
||||||
<control>
|
<control>
|
||||||
<mode>boot</mode>
|
<mode>boot</mode>
|
||||||
</control>
|
</control>
|
||||||
|
|||||||
Reference in New Issue
Block a user