]> git.openstreetmap.org Git - chef.git/commitdiff
Tune bonding on odin
authorTom Hughes <tom@compton.nu>
Mon, 16 Oct 2017 17:45:09 +0000 (18:45 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 16 Oct 2017 17:45:09 +0000 (18:45 +0100)
cookbooks/networking/templates/default/interfaces.erb
roles/odin.rb

index 7ffd456deceabb306291c13b100851e29c00a416..d0d4dd7c8099628398177aac41ad01e2c25b0f62 100644 (file)
@@ -50,6 +50,9 @@ iface <%= interface[:interface] %> <%= interface[:family] %> static
       bond-miimon <%= interface[:bond][:miimon] || 100 %>
 <% if interface[:bond][:xmithashpolicy] -%>
       bond_xmit_hash_policy <%= interface[:bond][:xmithashpolicy] %>
+<% end -%>
+<% if interface[:bond][:lacprate] -%>
+      bond-lacp-rate <%= interface[:bond][:lacprate] %>
 <% end -%>
       bond-downdelay <%= interface[:bond][:downdelay] || 200 %>
       bond-updelay <%= interface[:bond][:updelay] || 200 %>
index dc5a612d36b2e963cef54edb5094a577ae2e960e..aa5700e32aa62bcb3c6107c8817c25d3f98880b4 100644 (file)
@@ -12,6 +12,10 @@ default_attributes(
         :prefix => "23",
         :gateway => "130.225.254.97",
         :bond => {
+          :mode => "802.3ad",
+          :miimon => "100",
+          :xmithashpolicy => "layer3+4",
+          :lacprate => "fast",
           :slaves => %w[eno1 eno2]
         }
       },