4d1bb9d8b9a24367ea11036bb6f8bfac2e241a39
howto/BGP-communities.md
| ... | ... | @@ -241,7 +241,7 @@ int dn42_packetloss; |
| 241 | 241 | function dn42_import_filter_internal(int link_latency; int link_bandwidth; int link_crypto; int link_topology; int link_packetloss) { |
| 242 | 242 | if is_valid_network() then { |
| 243 | 243 | update_flags(link_latency, link_bandwidth, link_crypto, link_topology, link_packetloss); |
| 244 | - accept; # no +500 bonus — local_pref already set by the originating peer |
|
| 244 | + accept; |
|
| 245 | 245 | } |
| 246 | 246 | if is_valid_network_v6() then { |
| 247 | 247 | update_flags(link_latency, link_bandwidth, link_crypto, link_topology, link_packetloss); |
| ... | ... | @@ -291,8 +291,9 @@ function dn42_import_filter(int link_latency; int link_bandwidth; int link_crypt |
| 291 | 291 | } |
| 292 | 292 | function dn42_export_filter(int link_latency; int link_bandwidth; int link_crypto; int link_topology; int link_packetloss) { |
| 293 | 293 | if is_valid_network() || is_valid_network_v6() then { |
| 294 | - if source = RTS_STATIC then bgp_community.add((64511, DN_REGION_GEO)); |
|
| 294 | + # if source = RTS_STATIC then bgp_community.add((64511, DN_REGION_GEO)); # uncomment if you want to advertise your region |
|
| 295 | 295 | update_flags(link_latency, link_bandwidth, link_crypto, link_topology, link_packetloss); |
| 296 | + # Remove the following if you don't want to advertise geo communities |
|
| 296 | 297 | update_geo_flags(); |
| 297 | 298 | bgp_med = 0; |
| 298 | 299 | bgp_med = bgp_med + ( ( 4 - ( link_crypto - 30 ) ) * 600 ); |