Skip to content

Commit

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

Expand Down

0 comments on commit d7d38a4

Please sign in to comment.