This commit is contained in:
@ -96,6 +96,7 @@ function transit_import_filter(int ASN) {
|
|||||||
pub_add_communities(ASN, 10);
|
pub_add_communities(ASN, 10);
|
||||||
pub_preprocess_communities();
|
pub_preprocess_communities();
|
||||||
bgp_local_pref = 400 - bgp_path.len * 10;
|
bgp_local_pref = 400 - bgp_path.len * 10;
|
||||||
|
if LOCAL_ASN ~ bgp_path then bgp_local_pref = 1;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
template bgp pub_transit {
|
template bgp pub_transit {
|
||||||
local as LOCAL_ASN;
|
local as LOCAL_ASN;
|
||||||
|
|
||||||
|
allow local as 1;
|
||||||
|
|
||||||
ipv6 {
|
ipv6 {
|
||||||
import where transit_import_filter(6939);
|
import where transit_import_filter(6939);
|
||||||
export where transit_export_filter(6939);
|
export where transit_export_filter(6939);
|
||||||
|
|||||||
Reference in New Issue
Block a user