]> git.openstreetmap.org Git - chef.git/blob - cookbooks/networking/templates/default/slave.network.erb
Fix online detection for bond interfaces
[chef.git] / cookbooks / networking / templates / default / slave.network.erb
1 [Match]
2 Name=<%= @slave %>
3
4 [Link]
5 RequiredForOnline=no
6
7 [Network]
8 LinkLocalAddressing=no
9 IPv6AcceptRA=no
10 Bond=<%= @master[:interface] %>
11 <% if @master[:bond][:mode].nil? || @master[:bond][:mode] == "active-backup" -%>
12 <% if @master[:bond][:slaves].first == @slave -%>
13 PrimarySlave=true
14 <% end -%>
15 <% end -%>