]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/templates/default/interfaces.erb
Enable netplan for remaining servers
[chef.git] / cookbooks / networking / templates / default / interfaces.erb
index 2344c1f9d0e3c372082add2dccda507532d7d087..1e547b38bff5cc57e25b1e03b276cd348f866d26 100644 (file)
@@ -37,9 +37,6 @@ iface <%= interface[:interface] %> <%= interface[:family] %> static
       pre-down /sbin/ip -f <%= interface[:family] %> route del <%= interface[:gateway] %> dev <%= interface[:interface] %>
 <% end -%>
 <% end -%>
-<% if interface[:mtu] -%>
-      mtu <%= interface[:mtu] %>
-<% end -%>
 <% if interface[:family] == "inet6" -%>
       autoconf 0
 <% end -%>
@@ -48,6 +45,12 @@ iface <%= interface[:interface] %> <%= interface[:family] %> static
       bond-slaves none
       bond-primary <%= interface[:bond][:slaves].first %>
       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 %>
 <% end -%>