howto/BGP-communities.md
... ...
@@ -171,10 +171,10 @@ function update_crypto(int link_crypto) -> int {
171 171
}
172 172
#Remove the following function if you do not want to advertize your region in the BGP community.
173 173
function update_geo_flags() -> bool {
174
- if is_self_net() || is_self_net_v6() then {
175
- bgp_community.add((64511, DN_REGION_GEO));
176
- bgp_community.add((64511, DN_REGION_COUNTRY));
177
- }
174
+ if (is_self_net() || is_self_net_v6()) && source = RTS_STATIC then {
175
+ bgp_community.add((64511, DN_REGION_GEO));
176
+ bgp_community.add((64511, DN_REGION_COUNTRY));
177
+ }
178 178
}
179 179
function update_flags(int link_latency; int link_bandwidth; int link_crypto) -> bool
180 180
int dn42_latency;