update
parent
cd4cb2360e
commit
6cb3c74906
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue