From ea49153048188d40b7ce0d38ea87ea1a98502ce5 Mon Sep 17 00:00:00 2001 From: 186526 Date: Thu, 2 Feb 2023 15:00:24 +0800 Subject: [PATCH] update anycast prefix status --- bird/net186_anycast.conf | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bird/net186_anycast.conf b/bird/net186_anycast.conf index 69e3f15..84b2926 100644 --- a/bird/net186_anycast.conf +++ b/bird/net186_anycast.conf @@ -1,6 +1,15 @@ + +define ANYCAST_POPS = [ 104, 201, 221, 241, 401, 411, 501, 402, 223 ]; protocol static default_anycast { ipv6; route 2a06:a005:2980::/44 reject { bgp_large_community.add((200536, 0, 665)); + + if (POP !~ ANYCAST_POPS) then { + bgp_large_community.add((200536, 1, 0)); + } + if (POP ~ [ 221, 104, 402 ]) then { + bgp_large_community.add((200536, 115, 1)); + } }; -} +};