From 600ab299286a66da1892469f3c48ac524c621069 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Sat, 20 Mar 2021 18:19:01 -0700 Subject: [PATCH] fix static route nexthops --- templates/global.tmpl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/global.tmpl b/templates/global.tmpl index 1119e781..37488063 100644 --- a/templates/global.tmpl +++ b/templates/global.tmpl @@ -31,8 +31,8 @@ protocol static static6 { {{ if .Static4 -}} protocol static explstatic4 { ipv4; - {{- range $i, $prefix := .Static4 }} - route {{ $prefix }} reject; + {{- range $prefix, $nexthop := .Static4 }} + route {{ $prefix }} via {{ $nexthop }}; {{- end }} } {{- end }} @@ -40,8 +40,8 @@ protocol static explstatic4 { {{ if .Static6 -}} protocol static explstatic6 { ipv6; - {{- range $i, $prefix := .Static6 }} - route {{ $prefix }} reject; + {{- range $prefix, $nexthop := .Static6 }} + route {{ $prefix }} via {{ $nexthop }}; {{- end }} } {{- end }}