update: filter
This commit is contained in:
@ -36,18 +36,18 @@ function pub_add_communities(int ASN; int PeerType) {
|
||||
}
|
||||
|
||||
function pub_preprocess_communities() {
|
||||
if (LOCAL_ASN, 115, 1) ~ bgp_large_community then bgp_path.prepend(bgp_path.last);
|
||||
if (LOCAL_ASN, 115, 1) ~ bgp_large_community then bgp_path.prepend(LOCAL_ASN);
|
||||
if (LOCAL_ASN, 115, 3) ~ bgp_large_community then {
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
}
|
||||
if (LOCAL_ASN, 115, 5) ~ bgp_large_community then {
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(bgp_path.last);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
bgp_path.prepend(LOCAL_ASN);
|
||||
}
|
||||
# Finished (LOCAL_ASN, 115, *);
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user