update: filter

This commit is contained in:
186526 2023-01-05 00:41:54 +08:00
parent 1dbf6264ed
commit 158955709a
1 changed files with 9 additions and 9 deletions

View File

@ -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;