Skip to content

Commit

Permalink
fix transit path function name
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Oct 31, 2020
1 parent 1183892 commit 534a400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/peer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ protocol bgp AS{{ $peer.Asn }}v{{ $af }}_{{ $i }} {
bgp_large_community.add((ASN,0,101)); # Learned from upstream
reject;
{{ else if eq $peer.Type "peer" -}}
reject_transit();
reject_transit_paths();
if (net ~ AS{{ $peer.Asn }}_PFX_v{{ $af }}) then {
bgp_large_community.add((ASN,0,102)); # Learned from peer
accept;
}
{{ else if eq $peer.Type "downstream" -}}
reject_transit();
reject_transit_paths();
if (net ~ AS{{ $peer.Asn }}_PFX_v{{ $af }}) then {
bgp_large_community.add((ASN,0,103)); # Learned from downstream
accept;
Expand Down

0 comments on commit 534a400

Please sign in to comment.