summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;