emerg: update filter which is leaking route now
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-28 03:23:07 +08:00
parent 486fcecfec
commit 9c129e6d80
4 changed files with 7 additions and 6 deletions

View File

@ -106,7 +106,7 @@ function transit_export_filter(int ASN) {
pub_process_path();
if !is_valid() then return false;
if bgp_large_community ~ [(LOCAL_ASN, 110, 0), (LOCAL_ASN, 110, 10)] then return false;
if bgp_path.last !~ DOWNSTREAM_ASN && source = RTS_BGP then {
if !pub_is_downstream_route() && source = RTS_BGP then {
print "transit exporter: for ", net, " ASN ", bgp_path.last;
return false;
}