summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/uvok_bird/defaults/main.yml1
-rw-r--r--roles/uvok_bird/templates/clear_defines.conf.j226
2 files changed, 27 insertions, 0 deletions
diff --git a/roles/uvok_bird/defaults/main.yml b/roles/uvok_bird/defaults/main.yml
index b877f74..5023a41 100644
--- a/roles/uvok_bird/defaults/main.yml
+++ b/roles/uvok_bird/defaults/main.yml
@@ -9,3 +9,4 @@ uvok_bird_opts:
clear_prefixes: []
babel_if_name:
router_id: "0.0.0.0"
+ clear_as: "64496"
diff --git a/roles/uvok_bird/templates/clear_defines.conf.j2 b/roles/uvok_bird/templates/clear_defines.conf.j2
new file mode 100644
index 0000000..40b6bca
--- /dev/null
+++ b/roles/uvok_bird/templates/clear_defines.conf.j2
@@ -0,0 +1,26 @@
+# {{ ansible_managed }}
+
+define CLEARNET_ASN = {{ uvok_bird_opts.clear_as }};
+
+# community values
+define INFO_PEER = 100;
+define INFO_IXP_RS = 101;
+define INFO_TRANSIT = 102;
+
+define KIND_DIRECT = 1;
+define KIND_TUNNEL = 2;
+
+define LC_IXP_ID = 1;
+define LC_PEER_ASN = 2;
+define LC_INFO = 3;
+# connection kind
+define LC_KIND = 4;
+# filter kind
+define LC_FILTERED = 5;
+
+define FILTER_BOGON_ASN = 200;
+define FILTER_BOGON_PREFIX = 201;
+define FILTER_PROBLEM_PREFIX = 202;
+define FILTER_LONG_ASPATH = 203;
+define FILTER_SMALL_V6_PREFIX = 204;
+define FILTER_ROA_RPKI = 205;