From 96f86e552d653b4bbdd5b2ee3a7977580a6d5405 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 21 Jul 2024 14:05:36 +0200 Subject: bird: Set local pref=0 for filtered routes --- roles/uvok_bird/files/clear_functions.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/uvok_bird') 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; } -- cgit v1.2.3