Update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-30 02:49:49 +08:00
parent 9c129e6d80
commit 50de5b9386
3 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,9 @@
function is_peer_route() {
if (LOCAL_ASN, 110, 0) ~ bgp_large_community then return false;
if (LOCAL_ASN, 110, 10) ~ bgp_large_community then return false;
if !pub_is_downstream_route() then return false;
if bgp_path ~ [ 7018, 3320, 3257, 6830, 3356, 2914, 5511, 3491, 1239, 6453, 6762, 1299, 12956, 701, 6461, 174, 6939] then {
return false;
}
return true;
}
@ -19,6 +21,7 @@ function direct_peer_export_filter(int ASN) {
pub_process_path();
if !is_valid() then return false;
if !is_peer_route() then return false;
if !pub_is_downstream_route() then return false;
pub_add_communities(ASN, 30);
if pub_process_communities(ASN, 0) then return true;
else return false;