From fdd5277060a4caaa10123b3af3a060569b5ea40f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 17 May 2019 08:51:23 +0100 Subject: [PATCH] Set interface MTU correctly --- cookbooks/networking/recipes/default.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.5