fix static route template

This commit is contained in:
Samuel Lorch 2023-04-08 18:11:19 +02:00
parent ff28b30d93
commit 4770ac7384

View file

@ -18,9 +18,9 @@ VLAN={{ . }}
{{- range .StaticRoutes }}
[Route]
Destination={{ Destination }}
Gateway={{ Gateway }}
Destination={{ .Destination }}
Gateway={{ .Gateway }}
{{- if ne .Metric 0 }}
Metric={{ Metric }}
Metric={{ .Metric }}
{{- end }}
{{end}}