add global route controller
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:
@ -1,7 +1,7 @@
|
||||
function net186_import_filter(int POPID)
|
||||
int viaRegion;
|
||||
bgppath public_bgp_path;
|
||||
{
|
||||
{
|
||||
public_bgp_path = delete(bgp_path, [4200000000..4225479999]);
|
||||
|
||||
if (LOCAL_ASN, 122, REGION) !~ bgp_large_community then bgp_large_community.add((LOCAL_ASN, 122, REGION));
|
||||
@ -10,6 +10,8 @@ function net186_import_filter(int POPID)
|
||||
else if bgp_large_community ~ [(LOCAL_ASN, 110, 1), (LOCAL_ASN, 110, 10)] then bgp_local_pref = 400;
|
||||
else bgp_local_pref = 300;
|
||||
|
||||
pub_route_controller_specific();
|
||||
|
||||
viaRegion = 0;
|
||||
# Route is via Europe & Africa & Middle East
|
||||
if bgp_large_community ~ [(LOCAL_ASN, 122, 100), (LOCAL_ASN, 122, 300..310), (LOCAL_ASN, 122, 600), (LOCAL_ASN, 121, 100), (LOCAL_ASN, 121, 300..310), (LOCAL_ASN, 121, 600)] || POP ~ [100, 300..310, 600] then viaRegion = viaRegion + 1;
|
||||
|
Reference in New Issue
Block a user