misakanet-config/bird/net186_anycast.conf

23 lines
710 B
Plaintext
Raw Normal View History

2023-02-02 07:00:24 +00:00
2023-03-09 13:10:19 +00:00
define ANYCAST_POPS = [ 104, 201, 202, 221, 241, 401, 411, 501, 402, 223, 222 ];
2023-01-21 09:09:56 +00:00
protocol static default_anycast {
ipv6;
route 2a06:a005:2980::/44 reject {
bgp_large_community.add((200536, 0, 665));
2023-02-02 07:00:24 +00:00
if (POP !~ ANYCAST_POPS) then {
bgp_large_community.add((200536, 1, 0));
}
2023-03-09 13:10:19 +00:00
if (POP ~ [ 221, 104, 402, 202, 101 ]) then {
2023-02-02 07:00:24 +00:00
bgp_large_community.add((200536, 115, 1));
}
2023-01-21 09:09:56 +00:00
};
2023-03-14 15:06:59 +00:00
route 2602:2a3::/48 reject {
if (POP !~ ANYCAST_POPS) then {
bgp_large_community.add((200536, 1, 0));
}
if (POP ~ [ 221, 104, 402, 202, 101 ]) then {
bgp_large_community.add((200536, 115, 1));
}
};
2023-02-02 07:00:24 +00:00
};