diff options
author | uvok cheetah | 2024-04-21 17:15:49 +0200 |
---|---|---|
committer | uvok cheetah | 2024-04-21 17:15:49 +0200 |
commit | c02e624bfee6279241317da3dd863815d49a5506 (patch) | |
tree | b737b06432c5d5312bf34a690412a82186a43314 /roles | |
parent | ed76c7f9e2508d9d9bacd159fe008b623e3499b8 (diff) |
bgp: Add clearnet defines
Diffstat (limited to 'roles')
-rw-r--r-- | roles/uvok_bird/defaults/main.yml | 1 | ||||
-rw-r--r-- | roles/uvok_bird/templates/clear_defines.conf.j2 | 26 |
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; |