From 4770ac73843e90ae3660b9a1bcd5ffd722f6df6d Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sat, 8 Apr 2023 18:11:19 +0200 Subject: [PATCH] fix static route template --- internal/networkd/template/config-addressing.network.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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