X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d9960db34ed1a5e9ed34e63b6bef0f84690def0b..c6902ea9afba17351101f28b4a401e5193b89c1b:/cookbooks/networking/recipes/default.rb diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index f6015a17e..822f9042f 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -76,6 +76,10 @@ node[:networking][:interfaces].each do |name, interface| deviceplan["addresses"].push("#{interface[:address]}/#{prefix}") + if interface[:mtu] + deviceplan["mtu"] = interface[:mtu] + end + if interface[:bond] deviceplan["interfaces"] = interface[:bond][:slaves].to_a