Update China mainland route policy
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-20 16:39:28 +08:00
parent c41fad8ccb
commit bb2fdc712b
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ function net186_import_filter(int POPID)
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;
if (LOCAL_ASN, 122, 430) ~ bgp_large_community && REGION != 430 && (LOCAL_ASN, 121, 430) !~ bgp_large_community then return false;
bgp_local_pref = bgp_local_pref - filter(bgp_large_community, [(LOCAL_ASN, 122, *)]).len * 5;