summaryrefslogtreecommitdiff
path: root/roles/uvok_bird/files
diff options
context:
space:
mode:
authoruvok cheetah2024-06-13 15:28:26 +0200
committeruvok cheetah2024-06-13 15:28:26 +0200
commit5b1de2c4b5579aad2c3230b3f01e86f99153ad43 (patch)
tree3e2e2a78dc8a2e4476adcdc473261127f8d72be6 /roles/uvok_bird/files
parent94f911ad620d1e5673f5d4a1a14e3949eed38229 (diff)
BGP: Breaking: Add IXP ID as param
Also, add "peer" function
Diffstat (limited to 'roles/uvok_bird/files')
-rw-r--r--roles/uvok_bird/files/clear_functions.conf8
1 files changed, 7 insertions, 1 deletions
diff --git a/roles/uvok_bird/files/clear_functions.conf b/roles/uvok_bird/files/clear_functions.conf
index f9e3c10..b0fda90 100644
--- a/roles/uvok_bird/files/clear_functions.conf
+++ b/roles/uvok_bird/files/clear_functions.conf
@@ -4,9 +4,10 @@ function clean_own_communities() {
bgp_large_community.delete([(CLEARNET_ASN, *, *)]);
}
-function clearnet_import_ixp() {
+function clearnet_import_ixp(int ixp_id) {
clean_own_communities();
bgp_large_community.add((CLEARNET_ASN, LC_INFO, INFO_IXP_RS));
+ bgp_large_community.add((CLEARNET_ASN, LC_IXP_ID, ixp_id));
}
function clearnet_import_transit() {
@@ -14,6 +15,11 @@ function clearnet_import_transit() {
bgp_large_community.add((CLEARNET_ASN, LC_INFO, INFO_TRANSIT));
}
+function clearnet_import_peer() {
+ clean_own_communities();
+ bgp_large_community.add((CLEARNET_ASN, LC_INFO, INFO_PEER));
+}
+
function clearnet_is_ixp() {
if (CLEARNET_ASN, LC_INFO, INFO_IXP_RS) ~ bgp_large_community then {
return true;