From f19dc815cfd5d17b0b3367af43d580672fd56655 Mon Sep 17 00:00:00 2001 From: gaoyuheng Date: Mon, 26 Jan 2026 11:33:36 +0800 Subject: [PATCH] list update --- bird/template/dn42.conf | 12 ++++++------ bird/template/inet.conf | 16 ++++++++-------- bird/template/inet_ixp.conf | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/bird/template/dn42.conf b/bird/template/dn42.conf index ae65731..6c03fa8 100644 --- a/bird/template/dn42.conf +++ b/bird/template/dn42.conf @@ -5,7 +5,7 @@ template bgp dn42_bgp_up { table dn42v4; import filter { if !is_dn42_prefix() then reject; - if dn42_is_self_net() then reject; + if is_self_net_dn42v4() then reject; bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp accept; }; @@ -22,7 +22,7 @@ template bgp dn42_bgp_up { table dn42v6; import filter { if !is_dn42_prefix() then reject; - if dn42_is_self_net_v6() then reject; + if is_self_net_dn42v6() then reject; bgp_large_community.add((DN42_ASN,200,0));# 传输到Ebgp accept; }; @@ -48,13 +48,13 @@ template bgp dn42_ibgp { import filter { if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject; if !is_dn42_prefix() then reject; - if dn42_is_self_net() then reject; + if is_self_net_dn42v4() then reject; accept; }; export filter { if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject; if !is_dn42_prefix() then reject; - if dn42_is_self_net() then reject; + if is_self_net_dn42v4() then reject; accept; }; }; @@ -65,13 +65,13 @@ template bgp dn42_ibgp { import filter { if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject; if !is_dn42_prefix() then reject; - if dn42_is_self_net_v6() then reject; + if is_self_net_dn42v6() then reject; accept; }; export filter { if bgp_large_community ~ [(DN42_ASN, 1,*)] then reject; if !is_dn42_prefix() then reject; - if dn42_is_self_net_v6() then reject; + if is_self_net_dn42v6() then reject; accept; }; }; diff --git a/bird/template/inet.conf b/bird/template/inet.conf index 2cfba3c..d0cbac1 100644 --- a/bird/template/inet.conf +++ b/bird/template/inet.conf @@ -1,5 +1,5 @@ filter filter_inet4_bgp_import { - if is_self_net() then reject; + 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)); @@ -7,7 +7,7 @@ filter filter_inet4_bgp_import { } filter filter_inet4_bgp_export { - if !is_self_net() then reject; + if !is_self_net_inet4() then reject; 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; @@ -16,7 +16,7 @@ filter filter_inet4_bgp_export { } filter filter_inet6_bgp_import { - if is_self_net_v6() then reject; + 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 @@ -24,7 +24,7 @@ filter filter_inet6_bgp_import { } filter filter_inet6_bgp_export { - if !is_self_net_v6() then reject; + if !is_self_net_inet6() then reject; 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; @@ -33,28 +33,28 @@ filter filter_inet6_bgp_export { } filter filter_inet4_ibgp_import { - if is_self_net() then reject; + if is_self_net_inet4() then reject; if is_bogon_prefix() then reject; if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject; accept; } filter filter_inet4_ibgp_export { - if is_self_net() then reject; + if is_self_net_inet4() then reject; if is_bogon_prefix() then reject; if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject; accept; } filter filter_inet6_ibgp_import { - if is_self_net_v6() then reject; + if is_self_net_inet6() then reject; if is_bogon_prefix() then reject; if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject; accept; } filter filter_inet6_ibgp_export { - if is_self_net_v6() then reject; + if is_self_net_inet6() then reject; if is_bogon_prefix() then reject; if bgp_large_community ~ [(LOCAL_ASN, 1,*)] then reject; accept; diff --git a/bird/template/inet_ixp.conf b/bird/template/inet_ixp.conf index 394fde7..98b2f3d 100644 --- a/bird/template/inet_ixp.conf +++ b/bird/template/inet_ixp.conf @@ -4,12 +4,12 @@ template bgp tpl_inet6_ixp { ipv6 { table inet6; import filter { - if is_self_net_v6() then reject; + if is_self_net_inet6() then reject; if is_bogon_prefix() || (bgp_path.len > 100) then reject; accept; }; export filter { - if !is_self_net_v6() then reject; + if !is_self_net_inet6() then reject; if is_bogon_prefix() || (bgp_path.len > 100) then reject; if bgp_large_community !~ [(LOCAL_ASN, 200,0)] then reject; bgp_large_community.empty;