]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/networking/templates/default/network.erb
Merge remote-tracking branch 'github/pull/701'
[chef.git] / cookbooks / networking / templates / default / network.erb
index 796bf67d6f4c51c69e3386fe4efe41a77fc99085..d2c34bfbf24559fe9dfc44e9c3c0e96fc9c7c960 100644 (file)
@@ -15,6 +15,12 @@ IPv6AcceptRA=no
 <% Array(@interface[:vlans]).sort.uniq.each do |vlan| -%>
 VLAN=<%= @interface[:interface] %>.<%= vlan %>
 <% end -%>
+<% if @interface[:interface] =~ /^bond\d+$/ && node[:packages][:systemd][:version].to_i < 254 -%>
+
+[Link]
+RequiredFamilyForOnline=ipv4
+RequiredForOnline=degraded-carrier
+<% end -%>
 <% if @interface.dig(:inet6, :dhcp) -%>
 
 [DHCPv6]