]> git.openstreetmap.org Git - chef.git/blob - cookbooks/networking/templates/default/bond.netdev.erb
Add support for using systemd-networkd directly instead of netplan
[chef.git] / cookbooks / networking / templates / default / bond.netdev.erb
1 [NetDev]
2 Name=<%= @interface[:interface] %>
3 Kind=bond
4
5 [Bond]
6 Mode=<%= @interface[:bond][:mode] || "active-backup" %>
7 <% if @interface[:bond][:xmithashpolicy] -%>
8 TransmitHashPolicy=<%= @interface[:bond][:xmithashpolicy] %>
9 <% end -%>
10 <% if @interface[:bond][:lacprate] -%>
11 LACPTransmitRate=<%= @interface[:bond][:lacprate] %>
12 <% end -%>
13 MIIMonitorSec=<%= @interface[:bond][:miimon] || "100ms" %>
14 UpDelaySec=<%= @interface[:bond][:updelay] || "200ms" %>
15 DownDelaySec=<%= @interface[:bond][:downdelay] || "200ms" %>