diff --git a/lib/20-community-net186.conf b/lib/20-community-net186.conf index 4914af7..6185ad7 100644 --- a/lib/20-community-net186.conf +++ b/lib/20-community-net186.conf @@ -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 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, 10)] then bgp_local_pref = 400; else bgp_local_pref = 300;