Provide sprig functions in overlay templates

This commit is contained in:
John Hanks
2024-02-26 10:45:51 -07:00
committed by Christian Goll
parent 6a8f0022db
commit cbf9178f10
5 changed files with 56 additions and 19 deletions

View File

@@ -14,8 +14,8 @@ interface-name={{ $netdev.Device }}
{{ if $netdev.Type -}}
{{ if eq $netdev.Type "bond-slave" -}}
slave-type=bond
{{- $conn := split $connection_id "_" }}
{{- $master := index $conn 0 }}
{{- $conn := split "_" $connection_id }}
{{- $master := $conn._0 }}
master={{ $master }}
type=ethernet
{{ else }}