summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
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;
}