This stops systemd-wait-online treaing them as required and
waiting for them to come up when they may not be connected - the
actual bond will still be required but will be up once at least
one slave interface is.
netplan["network"]["bonds"].each_value do |bond|
bond["interfaces"].each do |interface|
- netplan["network"]["ethernets"][interface] ||= { "accept-ra" => false }
+ netplan["network"]["ethernets"][interface] ||= { "accept-ra" => false, "optional" => true }
end
end