From c02e624bfee6279241317da3dd863815d49a5506 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 21 Apr 2024 17:15:49 +0200 Subject: bgp: Add clearnet defines --- roles/uvok_bird/defaults/main.yml | 1 + roles/uvok_bird/templates/clear_defines.conf.j2 | 26 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 roles/uvok_bird/templates/clear_defines.conf.j2 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; -- cgit v1.2.3