Fix: wrong use of filter
parent
3c1b5f2d6a
commit
257bdda69a
|
@ -1,4 +1,4 @@
|
|||
filter net186_import_filter(int POPID)
|
||||
function net186_import_filter (int POPID)
|
||||
int viaRegion;
|
||||
bgppath public_bgp_path;
|
||||
{
|
||||
|
@ -32,7 +32,7 @@ filter net186_import_filter(int POPID)
|
|||
bgp_local_pref = bgp_local_pref - filter(bgp_large_community, [(LOCAL_ASN, 122, *)]).len * 10;
|
||||
};
|
||||
|
||||
filtet net186_export_filter(int POPID) {
|
||||
function net186_export_filter (POPID) {
|
||||
if (65535, 65282) ~ bgp_community then {
|
||||
reject;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ function is_peer_route() {
|
|||
return true;
|
||||
}
|
||||
|
||||
filter direct_peer_import_filter(int ASN) {
|
||||
function direct_peer_import_filter(int ASN) {
|
||||
if !is_valid() then reject;
|
||||
pub_add_communities(ASN, 0);
|
||||
pub_preprocess_communities();
|
||||
|
@ -15,7 +15,7 @@ filter direct_peer_import_filter(int ASN) {
|
|||
accept;
|
||||
}
|
||||
|
||||
filter direct_peer_export_filter(int ASN) {
|
||||
function direct_peer_export_filter(int ASN) {
|
||||
if !is_valid() then reject;
|
||||
# Delete Self eBGP Confed Path.
|
||||
bgp_path.delete([4200000000..4225479999]);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
function pub_add_communities(int ASN, int type) {
|
||||
|
||||
# DIRECT PEER
|
||||
|
@ -76,14 +75,14 @@ function pub_process_communities(int ASN, int type) {
|
|||
|
||||
}
|
||||
|
||||
filter transit_import_filter(int ASN) {
|
||||
function transit_import_filter(int ASN) {
|
||||
if !is_valid() then reject;
|
||||
pub_add_communities(ASN, 10);
|
||||
pub_preprocess_communities();
|
||||
accept;
|
||||
}
|
||||
|
||||
filter transit_export_filter(int ASN) {
|
||||
function transit_export_filter(int ASN) {
|
||||
if !is_valid() then reject;
|
||||
# Delete Self eBGP Confed Path.
|
||||
bgp_path.delete([4200000000..4225479999]);
|
||||
|
|
Loading…
Reference in New Issue