From 37e853aa4aecab47f493f41d68c7da3f626bb00d Mon Sep 17 00:00:00 2001 From: 186526 Date: Sun, 26 Feb 2023 18:07:04 +0800 Subject: [PATCH] fix is_valid --- communities.md | 10 ++++++---- util/util.conf | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/communities.md b/communities.md index 2cacd1b..01ba710 100644 --- a/communities.md +++ b/communities.md @@ -96,15 +96,17 @@ | sg-sin1 | Singapore | 411 | Core | ✓ | | sg-sin2 | Singapore | 412 | Edge | | in-bom1 | Mumbai, IN | 421 | Edge | -| China Mainland | +| au-syd1 | Sydney, AU | 501 | Core | ✓ | + + diff --git a/util/util.conf b/util/util.conf index ac3b7ff..095b4ef 100644 --- a/util/util.conf +++ b/util/util.conf @@ -25,7 +25,8 @@ function is_downstream_asn() { } function is_valid() { - if (LOCAL_ASN, 0, 665) ~ bgp_large_community then return true; + if (LOCAL_ASN, 110, 30) ~ bgp_large_community then return true; + if bgp_path.len = 0 then return true; if pub_is_invalid_net_length() then return false; if is_bogon_prefix() then return false; if is_bogon_asn() then return false;