summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authoruvok cheetah2024-07-21 14:05:36 +0200
committeruvok cheetah2024-07-21 14:05:36 +0200
commit96f86e552d653b4bbdd5b2ee3a7977580a6d5405 (patch)
tree9134702bbed2bda6668942e5d95ce6ea3cae86bf /roles
parent934e7660c90f5863eefbcf145a3ef988542fb2dc (diff)
bird: Set local pref=0 for filtered routesHEADmaster
Diffstat (limited to 'roles')
-rw-r--r--roles/uvok_bird/files/clear_functions.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/uvok_bird/files/clear_functions.conf b/roles/uvok_bird/files/clear_functions.conf
index b0fda90..76a2ead 100644
--- a/roles/uvok_bird/files/clear_functions.conf
+++ b/roles/uvok_bird/files/clear_functions.conf
@@ -29,4 +29,8 @@ function clearnet_is_ixp() {
function clearnet_add_filter(int filter_reason) {
bgp_large_community.add((CLEARNET_ASN, LC_FILTERED, filter_reason));
+ # ensure route never gets selected as "best"
+ # (for direct peer connections: if that happened, no other route
+ # would go from unfiltered to transit table).
+ bgp_local_pref = 0;
}