From ebd1389bc1fa2650993e86c8882695da3c5a1295 Mon Sep 17 00:00:00 2001 From: Ludwig Bayerlein Date: Mon, 5 Aug 2024 10:31:22 +0200 Subject: [PATCH] Fixes #37712 - vlan interface detection --- .../snippet/kickstart_networking_setup.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/unattended/provisioning_templates/snippet/kickstart_networking_setup.erb b/app/views/unattended/provisioning_templates/snippet/kickstart_networking_setup.erb index fd5339f8b8c..e7fbf0e54a6 100644 --- a/app/views/unattended/provisioning_templates/snippet/kickstart_networking_setup.erb +++ b/app/views/unattended/provisioning_templates/snippet/kickstart_networking_setup.erb @@ -37,9 +37,12 @@ description: | <%- @host.managed_interfaces.each do |interface| %> <%- next if !interface.managed? -%> -<%- next if bonded_interfaces.include?(interface.identifier) -%> -<%- interface_identifier = @host.bond_interfaces.map { |i| i.identifier }.include?(interface.attached_to) ? interface.identifier : nil %> +<%- if bonded_interfaces.include?(interface.identifier) -%> +<%- interface_identifier = @host.bond_interfaces.map { |i| i.identifier }.include?(interface.attached_to) ? interface.identifier : nil %> +<%- else -%> +<%- interface_identifier = @host.interfaces.map { |i| i.identifier }.include?(interface.attached_to) ? interface.identifier : nil %> +<%- end -%> <%= "# #{interface.identifier} interface" %> <%= snippet('kickstart_ifcfg_get_identifier_names', :variables => { :interface => interface, :identifier => interface_identifier }) -%> <%- ifcfg = snippet('kickstart_ifcfg_generic_interface', :variables => {