{{ range $devname, $netdev := .NetDevs -}}
{{- $filename := print "10-persistent-net-" $devname ".link" }}
{{- file $filename }}
# This file is autogenerated by warewulf
# Host:   {{$.BuildHost}}
# Time:   {{$.BuildTime}}
# Source: {{$.BuildSource}}
{{- if and $netdev.Hwaddr $netdev.Device }}
[Match]
MACAddress={{$netdev.Hwaddr}}
[Link]
Name={{ $netdev.Device }}
{{ end -}}
{{ end -}}
