Fix: bgp route selection
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:
@ -3,12 +3,14 @@ function downstream_import_filter(int ASN) {
|
||||
if bgp_path.last !~ DOWNSTREAM_ASN then return false;
|
||||
pub_add_communities(ASN, 20);
|
||||
pub_preprocess_communities();
|
||||
bgp_local_pref = 500 - bgp_path.len * 10;
|
||||
return true;
|
||||
}
|
||||
|
||||
function downstream_export_filter(int ASN) {
|
||||
pub_process_path();
|
||||
if !is_valid() then return false;
|
||||
bgp_path.delete([4200000000..4225479999]);
|
||||
pub_add_communities(ASN, 10);
|
||||
if pub_process_communities(ASN, 20) then return true;
|
||||
else return false;
|
||||
}
|
Reference in New Issue
Block a user