From d590d1ae9551a6beb01e2f220755f7f65dbdc6e6 Mon Sep 17 00:00:00 2001 From: Nate Sales Date: Fri, 30 Apr 2021 12:12:22 -0700 Subject: [PATCH] fix template boolean operator --- templates/peer.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/peer.tmpl b/templates/peer.tmpl index 2d2b2313..2ac65659 100644 --- a/templates/peer.tmpl +++ b/templates/peer.tmpl @@ -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 }}