]> git.openstreetmap.org Git - chef.git/blobdiff - roles/equinix-dub.rb
Send traffic for RFC1918 addresses to the main routing table
[chef.git] / roles / equinix-dub.rb
index 8008210ad5d9e0c246eeb0c8d5fa820491baeee2..9652c2c8c19485bc2f13b304f2da5204706cb99a 100644 (file)
@@ -25,15 +25,16 @@ default_attributes(
       :external => {
         :zone => "dub",
         :inet => {
-          :prefix => "27",
-          :gateway => "184.104.226.97"
+          :rules => [
+            { :to => "10.0.0.0/8", :table => "main", :priority => 50 },
+            { :to => "172.16.0.0/12", :table => "main", :priority => 50 },
+            { :to => "192.168.0.0/16", :table => "main", :priority => 50 }
+          ]
         },
         :inet6 => {
-          :prefix => "64",
-          :gateway => "2001:470:1:b3b::1",
-          :routes => {
-            "2600:9000::/28" => { :type => "unreachable" }
-          }
+          :rules => [
+            { :to => "2600:9000::/28", :table => 150, :priority => 100 }
+          ]
         }
       }
     }