add allow local as
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-03 02:51:46 +08:00
parent e6550e9000
commit 1dbf6264ed
2 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,7 @@ function transit_import_filter(int ASN) {
pub_add_communities(ASN, 10);
pub_preprocess_communities();
bgp_local_pref = 400 - bgp_path.len * 10;
if LOCAL_ASN ~ bgp_path then bgp_local_pref = 1;
return true;
}