Fix: finally working now
This commit is contained in:
@ -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;
|
||||
}
|
@ -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;
|
||||
|
Reference in New Issue
Block a user