Skip to content

Commit

Permalink
Merge pull request #211 from potvinp/main
Browse files Browse the repository at this point in the history
Fix to ensure announcing ASN is in set
  • Loading branch information
natesales authored Apr 16, 2024
2 parents 216e51b + 1477904 commit 1b7d910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/embed/templates/peer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protocol bgp {{ UniqueProtocolName $peer.ProtocolName $peerName $af $peer.ASN $p
{{ if BoolDeref $peer.EnforcePeerNexthop }}enforce_peer_nexthop({{ $neighborNoIface }});{{ end }}
{{ if BoolDeref $peer.FilterTransitASNs }}reject_transit_paths();{{ end }}
{{ if or (not (Empty $peer.PrefixSet4)) (not (Empty $peer.PrefixSet6)) }}if !(net ~ AS{{ $peer.ASN }}_{{ $peer.ProtocolName }}_PFX_v{{ $af }}) then { _reject("not in prefix set"); }{{ end }}
{{ if BoolDeref $peer.FilterASSet }}if !(bgp_path.first ~ AS{{ $peer.ASN }}_{{ $peer.ProtocolName }}_AS_SET_MEMBERS) then { _reject("not in AS set"); }{{ end }}
{{ if BoolDeref $peer.FilterASSet }}if !(bgp_path.last ~ AS{{ $peer.ASN }}_{{ $peer.ProtocolName }}_AS_SET_MEMBERS) then { _reject("not in AS set"); }{{ end }}
{{ if BoolDeref $peer.FilterBlocklist }}reject_blocklist();{{ end }}

{{/* Transit Locking */}}
Expand Down

0 comments on commit 1b7d910

Please sign in to comment.