Remove Unnessesary Space from Templates

This commit is contained in:
Samuel Lorch 2023-04-08 13:01:54 +02:00
parent 15de5fb5bb
commit 4478bd7f41
8 changed files with 14 additions and 14 deletions

View file

@ -1,5 +1,5 @@
[Match] [Match]
Name= {{ .Name }} Name={{ .Name }}
[Network] [Network]
Vlan= {{ .BondName }} Vlan={{ .BondName }}

View file

@ -1,5 +1,5 @@
[Match] [Match]
Name= {{ .Name }} Name={{ .Name }}
[Network] [Network]
Bridge= {{ .BridgeName }} Bridge={{ .BridgeName }}

View file

@ -1,10 +1,10 @@
[Match] [Match]
Name= {{ .Name }} Name={{ .Name }}
[Network] [Network]
LLMNR=no LLMNR=no
{{- if eq .AddressingMode 2 }} {{- if eq .AddressingMode 2 }}
DHCP=yes DHCP=yes
{{- else }} {{- else }}
Address= {{ .Address }} Address={{ .Address }}
{{- end }} {{- end }}

View file

@ -1,5 +1,5 @@
[NetDev] [NetDev]
Name= {{ .Name }} Name={{ .Name }}
Kind=bond Kind=bond
[Bond] [Bond]

View file

@ -1,3 +1,3 @@
[NetDev] [NetDev]
Name= {{ .Name }} Name={{ .Name }}
Kind=bridge Kind=bridge

View file

@ -1,5 +1,5 @@
[NetDev] [NetDev]
Name= {{ .Name }} Name={{ .Name }}
Kind=vlan Kind=vlan
[VLAN] [VLAN]

View file

@ -1,8 +1,8 @@
[Match] [Match]
PermanentMACAddress= {{ .HardwareAddress }} PermanentMACAddress={{ .HardwareAddress }}
[Link] [Link]
Name= {{ .Name }} Name={{ .Name }}
{{ if .Alias -}} {{ if .Alias -}}
Alias= {{ .Alias }} Alias={{ .Alias }}
{{- end }} {{- end }}

View file

@ -1,7 +1,7 @@
[Match] [Match]
Name= {{ .Name }} Name={{ .Name }}
[Network] [Network]
{{- range .Vlans }} {{- range .Vlans }}
VLAN= {{ . }} VLAN={{ . }}
{{- end}} {{- end}}