diff --git a/internal/networkd/template/config-addressing.network.tmpl b/internal/networkd/template/config-addressing.network.tmpl index 1633e4c..a9dafb9 100644 --- a/internal/networkd/template/config-addressing.network.tmpl +++ b/internal/networkd/template/config-addressing.network.tmpl @@ -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}} \ No newline at end of file