X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4320650b9a9b95fe45992f59255d6f81f3c7e75f..28326173066466bb20f54bad702b2885b64f925c:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 0ae4a12fb..5cdaf91f6 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -94,12 +94,12 @@ node[:networking][:interfaces].each do |name, interface| deviceplan["parameters"] = { "mode" => interface[:bond][:mode] || "active-backup", - "primary" => interface[:bond][:slaves].first, "mii-monitor-interval" => interface[:bond][:miimon] || 100, "down-delay" => interface[:bond][:downdelay] || 200, "up-delay" => interface[:bond][:updelay] || 200 } + deviceplan["parameters"]["primary"] = interface[:bond][:slaves].first if deviceplan["parameters"]["mode"] == "active-backup" deviceplan["parameters"]["transmit-hash-policy"] = interface[:bond][:xmithashpolicy] if interface[:bond][:xmithashpolicy] deviceplan["parameters"]["lacp-rate"] = interface[:bond][:lacprate] if interface[:bond][:lacprate] end