Browse Source

bgp-filters: do not reannounce more specific of gitoyen PA from gitoyen to outside

Thanks Laurent!
Mail on equipage@

Date: Tue, 04 Aug 2015 09:53:54 +0200
Message-ID: <1438674834.2049.273.camel@guerby.net>
Sebastien Badia 9 years ago
parent
commit
b73c278992
1 changed files with 3 additions and 0 deletions
  1. 3 0
      etc/local/bird/common/bgp-filters.conf

+ 3 - 0
etc/local/bird/common/bgp-filters.conf

@@ -85,6 +85,9 @@ pair set full_export_communities;
     # the default route are not exported except if asked.
     if is_default() && ! (export_type="default") then return false;
 
+    # do not reannounce more specific of gitoyen PA from gitoyen to outside
+    if export_type != "core" && is_within_gitoyen() then return false;
+
     # for the routes of the members, only the routes having one of these communities are exported
     members_export_communities = [
             (20766,1),