From: Tom Hughes Date: Wed, 20 Mar 2019 08:58:16 +0000 (+0000) Subject: Don't create ethernet devices for bond interfaces with vlans X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/de3222d8c186fb58a7402d0643bae79c459dfd16 Don't create ethernet devices for bond interfaces with vlans --- diff --git a/cookbooks/networking/recipes/default.rb b/cookbooks/networking/recipes/default.rb index 068e0edf2..04c1c6258 100644 --- a/cookbooks/networking/recipes/default.rb +++ b/cookbooks/networking/recipes/default.rb @@ -123,7 +123,9 @@ if node[:networking][:netplan] end netplan["network"]["vlans"].each_value do |vlan| - netplan["network"]["ethernets"][vlan["link"]] ||= { "accept-ra" => false } + unless vlan["link"] =~ /^bond\d+$/ + netplan["network"]["ethernets"][vlan["link"]] ||= { "accept-ra" => false } + end end file "/etc/netplan/99-chef.yaml" do