Fix: finally working now

This commit is contained in:
2022-12-27 01:17:37 +08:00
parent ef9c4e765d
commit 4074719c8c
8 changed files with 14 additions and 8 deletions

View File

@ -82,10 +82,10 @@ function transit_import_filter(int ASN) {
}
function transit_export_filter(int ASN) {
if !is_valid() then return false;
# Delete Self eBGP Confed Path.
bgp_path.delete([4200000000..4225479999]);
if !is_valid() then return false;
pub_process_communities(ASN, 10);
if bgp_path.last !~ DOWNSTREAM_ASN then return false;
if bgp_path.last !~ DOWNSTREAM_ASN && source = RTS_BGP then return false;
return true;
}

View File

@ -16,9 +16,9 @@ function direct_peer_import_filter(int ASN) {
}
function direct_peer_export_filter(int ASN) {
bgp_path.delete([4200000000..4225479999]);
if !is_valid() then return false;
# Delete Self eBGP Confed Path.
bgp_path.delete([4200000000..4225479999]);
pub_process_communities(ASN, 10);
if !is_peer_route() then return false;
return true;