Skip to content

Commit

Permalink
fix template boolean operator
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Apr 30, 2021
1 parent 4ee545a commit d590d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/peer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protocol bgp {{ $peer.Name }}v{{ $af }}_{{ $i }} {
import keep filtered;
{{ end -}}
import limit AS{{ $peer.Asn }}_{{ $peer.Name }}_MAXPFX_v{{ $af }} action {{ $peer.MaxPfxAction }};
{{ if eq $peer.Asn $global.Asn || $peer.NextHopSelf }}next hop self;{{ end }}
{{ if or (eq $peer.Asn $global.Asn) ($peer.NextHopSelf) }}next hop self;{{ end }}
import filter {
{{ if not $peer.SkipFilter }}reject_bogons();{{ end }}
{{ if $peer.EnforceFirstAs }}enforce_first_as({{ $peer.Asn }});{{ end }}
Expand Down

0 comments on commit d590d1a

Please sign in to comment.