From ff7bb892a3756ff1461439dd8a5698fb736148e4 Mon Sep 17 00:00:00 2001 From: 186526 Date: Mon, 6 Feb 2023 16:45:41 +0800 Subject: [PATCH] update community controller --- lib/09-community-controller.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/09-community-controller.conf b/lib/09-community-controller.conf index 286ef5e..327f4f1 100644 --- a/lib/09-community-controller.conf +++ b/lib/09-community-controller.conf @@ -1,5 +1,6 @@ function pub_route_controller_specific() { if 4837 ~ bgp_path && (200536, 120, 221) ~ bgp_large_community && REGION ~ [200..299] then bgp_local_pref = 114514; + if 58453 ~ bgp_path && 2914 ~ bgp_path && (200536, 120, 401) ~ bgp_large_community then bgp_local_pref = 114514; if 174 ~ bgp_path && 4837 ~ bgp_path && (200536, 120, 101) ~ bgp_large_community && REGION = 100 then bgp_local_pref = 114514; if REGION = 400 && (200536, 121, 500) ~ bgp_large_community && (200536, 122, 410) ~ bgp_large_community then bgp_local_pref = bgp_local_pref + 6; if REGION = 430 && (200536, 110, 10) ~ bgp_large_community && (200536, 121, 430) !~ bgp_large_community && ((200536, 121, 400) ~ bgp_large_community || (200536, 122, 400) ~ bgp_large_community) then bgp_local_pref = bgp_local_pref + 30;