update: readme.md and filter
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 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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user