update: filter
This commit is contained in:
parent
1dbf6264ed
commit
158955709a
|
@ -36,18 +36,18 @@ function pub_add_communities(int ASN; int PeerType) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function pub_preprocess_communities() {
|
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 {
|
if (LOCAL_ASN, 115, 3) ~ bgp_large_community then {
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
}
|
}
|
||||||
if (LOCAL_ASN, 115, 5) ~ bgp_large_community then {
|
if (LOCAL_ASN, 115, 5) ~ bgp_large_community then {
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
bgp_path.prepend(bgp_path.last);
|
bgp_path.prepend(LOCAL_ASN);
|
||||||
}
|
}
|
||||||
# Finished (LOCAL_ASN, 115, *);
|
# Finished (LOCAL_ASN, 115, *);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue