diff --git a/templates/peer.tmpl b/templates/peer.tmpl index 77299c21..6a2252f5 100644 --- a/templates/peer.tmpl +++ b/templates/peer.tmpl @@ -31,8 +31,8 @@ protocol bgp AS{{ $peer.Asn }}v{{ $af }}_{{ $i }} { ipv{{ $af }} { import keep filtered; import limit AS{{ $peer.Asn }}_MAXPFX_v{{ $af }} action disable; + {{ if eq $peer.Asn $global.Asn }}next hop self;{{ end }} import filter { - {{ if eq $peer.Asn $global.Asn }}next hop self;{{ end }} reject_bogons(); strip_communities(); bgp_local_pref = {{ $peer.LocalPref }};