From 43e705ec076de54b7081c0120a644503d030693b Mon Sep 17 00:00:00 2001 From: 186526 Date: Sun, 26 Feb 2023 15:28:47 +0800 Subject: [PATCH] fix community --- communities.md | 3 ++- lib/20-community-net186.conf | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/communities.md b/communities.md index 09f40d5..2cacd1b 100644 --- a/communities.md +++ b/communities.md @@ -80,6 +80,7 @@ | ae-dxb1 | Dubai, AE | 601 | Edge | ✓ | | America | | us-iad1 | Ashburn, VA, US | 201 | Core | ✓ | +| us-iad2 | Ashburn, VA, US | 201 | Edge | ✓ | | us-sjc1 | Fremont, CA, US | 221 | Core | ✓ | | us-lax1 | Los Angeles, CA, US | 222 | Edge | ✓ | | us-sea1 | Seattle, CA, US | 223 | Core | ✓ | @@ -99,7 +100,7 @@ | cn-pek1 | Beijing, CN | 431 | Core | ✓ | | cn-pek2 | Beijing, CN | 431 | Edge | | cn-ctu1 | near Chengdu, China | 432 | Edge | ✓ | -| cn-can1 | Guangzhou, CN | 433 | Core | ✓ | +| cn-can1 | Guangzhou, CN | 433 | Core | | | cn-wuh1 | Wuhan, CN | 434 | Core | ✓ | | cn-wuh2 | Wuhan, CN | 434 | Edge | ✓ | | cn-csx1 | Changsha, CN | 435 | Edge | diff --git a/lib/20-community-net186.conf b/lib/20-community-net186.conf index 9b90ea1..4914af7 100644 --- a/lib/20-community-net186.conf +++ b/lib/20-community-net186.conf @@ -55,6 +55,7 @@ function net186_export_filter(int POPID) { if bgp_large_community !~ [(LOCAL_ASN, 120, *)] then bgp_large_community.add((LOCAL_ASN, 120, POP)); if bgp_large_community !~ [(LOCAL_ASN, 121, *)] then bgp_large_community.add((LOCAL_ASN, 121, REGION)); + if (LOCAL_ASN, 122, REGION) !~ bgp_large_community then bgp_large_community.add((LOCAL_ASN, 122, REGION)); return true; }; \ No newline at end of file