Browse Source

bgp: Tag gitoyen members (intra as) with community 5000

Sebastien Badia 10 years ago
parent
commit
92dda622b4

+ 4 - 2
etc/local/bird/bird/bgp.conf

@@ -32,7 +32,7 @@ protocol bgp core_zoulou from ibgp {
 template bgp tpl_fdn {
 	local as 20766;
 	description "Livraison FDN";
-        import where bgp_import(65055,"member",0);
+        import where bgp_import(65055,"member",50000);
         export where bgp_export(65055,"default");
 }
 
@@ -43,6 +43,7 @@ protocol bgp membre_fdn2 from tpl_fdn {
 	neighbor 80.67.168.214 as 65055;
 }
 
+
 #
 # Member: Grenode
 #
@@ -64,7 +65,7 @@ protocol bgp member_grenode1 from tpl_grenode {
 template bgp tpl_lautrenet {
 	local as 20766;
 	description "Livraison L'Autre.net";
-        import where bgp_import(64600,"member",0);
+        import where bgp_import(64600,"member",50000);
         export where bgp_export(64600,"full");
 }
 
@@ -123,6 +124,7 @@ template bgp tpl_franceix_peers {
 	import limit 10000;
 }
 
+
 protocol bgp franceix_rs1 from tpl_franceix_rs {
 	neighbor 37.49.236.250 as 51706;
 	description "FranceIX Route Server 1";

+ 4 - 2
etc/local/bird/bird6/bgp.conf

@@ -32,7 +32,7 @@ protocol bgp core_zoulou from ibgp {
 template bgp tpl_fdn {
 	local as 20766;
 	description "Livraison FDN";
-        import where bgp_import(65055,"member",0);
+        import where bgp_import(65055,"member",50000);
         export where bgp_export(65055,"default");
 }
 
@@ -65,7 +65,7 @@ protocol bgp member_grenode1 from tpl_grenode {
 template bgp tpl_lautrenet {
 	local as 20766;
 	description "Livraison L'Autre.net";
-        import where bgp_import(64600,"member",0);
+        import where bgp_import(64600,"member",50000);
         export where bgp_export(64600,"full");
 }
 
@@ -80,6 +80,7 @@ protocol bgp member_lautrenet2 from tpl_lautrenet {
 #
 # Member: Tetaneutral
 #
+
 template bgp tpl_tetaneutral {
 	local as 20766;
 	description "Livraison Tetaneutral.net";
@@ -111,6 +112,7 @@ protocol bgp transit_absolight from tpl_absolight {
 #
 # Peering: FranceIX
 #
+
 template bgp tpl_franceix_rs {
 	local as 20766;
         import where bgp_import(51706,"peering",26000);

+ 2 - 4
etc/local/bird/common/bgp-filters.conf

@@ -90,8 +90,7 @@ pair set full_export_communities;
     members_export_communities = [
             (20766,1),
             (20766,9999),
-            (20766,40000..49999),
-            (20766,50000..59999)
+            (20766,40000..49999)
     ];
     if export_type = "members"
         && filter(bgp_community, members_export_communities).len = 0 then return false;
@@ -104,8 +103,7 @@ pair set full_export_communities;
             (20766,10000..19999),
             (20766,20000..29999),
             (20766,30000..39999),
-            (20766,40000..49999),
-            (20766,50000..59999)
+            (20766,40000..49999)
     ];
     if export_type = "full"
         && filter(bgp_community, full_export_communities).len = 0 then return false;