production
186526 2023-03-18 14:37:14 +08:00
parent cd4cb2360e
commit 6cb3c74906
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ function net186_import_filter(int POPID)
if (LOCAL_ASN, 122, REGION) !~ bgp_large_community then bgp_large_community.add((LOCAL_ASN, 122, REGION)); if (LOCAL_ASN, 122, REGION) !~ bgp_large_community then bgp_large_community.add((LOCAL_ASN, 122, REGION));
if public_bgp_path.len = 1 then bgp_local_pref = 550; if public_bgp_path.len = 1 && bgp_large_community !~ [(LOCAL_ASN, 110, 10)] then bgp_local_pref = 501;
else if bgp_large_community ~ [(LOCAL_ASN, 110, 0), (LOCAL_ASN, 110, 2), (LOCAL_ASN, 110, 20)] then bgp_local_pref = 500; else if bgp_large_community ~ [(LOCAL_ASN, 110, 0), (LOCAL_ASN, 110, 2), (LOCAL_ASN, 110, 20)] then bgp_local_pref = 500;
else if bgp_large_community ~ [(LOCAL_ASN, 110, 10)] then bgp_local_pref = 400; else if bgp_large_community ~ [(LOCAL_ASN, 110, 10)] then bgp_local_pref = 400;
else bgp_local_pref = 300; else bgp_local_pref = 300;