This commit is contained in:
2026-01-26 14:52:04 +08:00
parent 2891ac911e
commit ce7ff04133
5 changed files with 5 additions and 52 deletions

View File

@@ -1,7 +1,6 @@
filter filter_inet4_bgp_import {
if is_self_net_inet4() then reject;
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
bgp_large_community.empty;
bgp_large_community.add((LOCAL_ASN,200,0));
accept;
}
@@ -11,15 +10,13 @@ filter filter_inet4_bgp_export {
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
if source != RTS_STATIC then reject;
if bgp_large_community !~ [(LOCAL_ASN, 200,0)] then reject;
bgp_large_community.empty;
accept;
}
filter filter_inet6_bgp_import {
if is_self_net_inet6() then reject;
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
bgp_large_community.empty;
bgp_large_community.add((LOCAL_ASN,200,0));# 传输到Ebgp
bgp_large_community.add((LOCAL_ASN,200,0));
accept;
}
@@ -28,7 +25,6 @@ filter filter_inet6_bgp_export {
if is_bogon_prefix() || (bgp_path.len > 100) then reject;
if source != RTS_STATIC then reject;
if bgp_large_community !~ [(LOCAL_ASN, 200,0)] then reject;
bgp_large_community.empty;
accept;
}