Update: Filter & readme.md
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -18,7 +18,7 @@ function net186_import_filter(int POPID)
|
||||
# Route is via East Asia & Oceania
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 122, 400..500)] then viaRegion = viaRegion + 1;
|
||||
|
||||
if viaRegion >= 3 then bgp_local_pref = bgp_local_pref - 50;
|
||||
if viaRegion >= 2 then bgp_local_pref = bgp_local_pref - 50 * viaRegion;
|
||||
|
||||
# Route is via China mainland but not advertise in China mainland.
|
||||
if (LOCAL_ASN, 122, 430) ~ bgp_large_community && REGION != 430 && (LOCAL_ASN, 120, 430) ~ bgp_large_community then return false;
|
||||
|
Reference in New Issue
Block a user