From e446e1053294044270d6a0a9b4c292785a2fd7f6 Mon Sep 17 00:00:00 2001 From: gaoyuheng Date: Tue, 14 Apr 2026 12:24:52 +0800 Subject: [PATCH] fix any error --- bird/filter/inet_upstream1.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bird/filter/inet_upstream1.conf b/bird/filter/inet_upstream1.conf index 58e8c45..c4d978d 100644 --- a/bird/filter/inet_upstream1.conf +++ b/bird/filter/inet_upstream1.conf @@ -9,13 +9,13 @@ function function_inet_bgp_export_to_upstream1() { if bgp_large_community ~ [(LOCAL_ASN, 100, 100)] then return false; if bgp_large_community ~ [(LOCAL_ASN, 100, 200)] then return false; if bgp_large_community ~ [(LOCAL_ASN, 200, 202)] then return false; - if source == RTS_STATIC then { + if source !~ [RTS_STATIC] then { # 静态路由,允许 200,[0 2] if bgp_large_community ~ [(LOCAL_ASN, 200, 0)] then return true; if bgp_large_community ~ [(LOCAL_ASN, 200, 2)] then return true; if bgp_large_community ~ [(LOCAL_ASN, 200, 1)] then return false; - }; - if source == RTS_BGP then { + } + if source !~ [RTS_BGP] then { # BGP路由,允许 300,0 if bgp_large_community ~ [(LOCAL_ASN, 300, 0)] then return true; }