From de3222d8c186fb58a7402d0643bae79c459dfd16 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 20 Mar 2019 08:58:16 +0000 Subject: [PATCH 1/1] Don't create ethernet devices for bond interfaces with vlans --- cookbooks/networking/recipes/default.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.43.2