update: readme.md and filter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-06 00:14:29 +08:00
parent 20ead466a1
commit e333f35a85
2 changed files with 25 additions and 25 deletions

View File

@ -18,7 +18,7 @@ function net186_import_filter(int POPID)
# Route is via or locate East Asia & Oceania
if bgp_large_community ~ [(LOCAL_ASN, 122, 400..500), (LOCAL_ASN, 121, 200..299)] then viaRegion = viaRegion + 1;
if viaRegion >= 2 then bgp_local_pref = bgp_local_pref - 50 * viaRegion;
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;
@ -28,7 +28,7 @@ function net186_import_filter(int POPID)
bgp_local_pref = bgp_local_pref - public_bgp_path.len * 10;
if LOCAL_ASN ~ bgp_path then return false;
return true;
};