From 20ead466a1eb995e5bdb5a69a1c548d0f6979fd1 Mon Sep 17 00:00:00 2001 From: 186526 Date: Thu, 5 Jan 2023 22:35:58 +0800 Subject: [PATCH] update: update filter --- lib/20-community-net186.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/20-community-net186.conf b/lib/20-community-net186.conf index 7bcabdc..8650530 100644 --- a/lib/20-community-net186.conf +++ b/lib/20-community-net186.conf @@ -27,6 +27,8 @@ function net186_import_filter(int POPID) bgp_local_pref = bgp_local_pref - public_bgp_path.len * 10; + if LOCAL_ASN ~ bgp_path then return false; + return true; };