]> git.openstreetmap.org Git - chef.git/commitdiff
Don't create ethernet devices for bond interfaces with vlans
authorTom Hughes <tom@compton.nu>
Wed, 20 Mar 2019 08:58:16 +0000 (08:58 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Mar 2019 09:06:45 +0000 (09:06 +0000)
cookbooks/networking/recipes/default.rb

index 068e0edf23496052bbb5085f1b323cf005c42d06..04c1c6258d6ab9e63f1fba3184534152f8099646 100644 (file)
@@ -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