Skip to content

Commit

Permalink
fix static route nexthops
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Mar 21, 2021
1 parent 24dd4a1 commit 600ab29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/global.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ 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 }}

{{ if .Static6 -}}
protocol static explstatic6 {
ipv6;
{{- range $i, $prefix := .Static6 }}
route {{ $prefix }} reject;
{{- range $prefix, $nexthop := .Static6 }}
route {{ $prefix }} via {{ $nexthop }};
{{- end }}
}
{{- end }}
Expand Down

0 comments on commit 600ab29

Please sign in to comment.