Update China mainland route policy
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:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user