Skip to content

Commit

Permalink
fix(vyatta): default static route distance to 1 if not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
activeshadow committed Jan 15, 2024
1 parent 59a6721 commit 7f4effc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/go/tmpl/templates/vyatta.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ protocols {
{{ range $route := $node.Network.Routes }}
route {{ $route.Destination }} {
next-hop {{ $route.Next }} {
{{ if $route.Cost }}
distance {{ $route.Cost }}
{{ else }}
distance 1
{{ end }}
}
}
{{ end }}
Expand Down

0 comments on commit 7f4effc

Please sign in to comment.