Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 76ad3019 authored by Baptiste Jonglez's avatar Baptiste Jonglez Committed by JONGLEZ Baptiste
Browse files

[input_loader] Don't try to allocate IPv6 in kavlan if kavlan is disabled

parent 157202a5
No related branches found
No related tags found
1 merge request!145Fix for issues preventing cluster bootstrap
...@@ -183,6 +183,7 @@ end ...@@ -183,6 +183,7 @@ end
def add_kavlan_ipv6s(h) def add_kavlan_ipv6s(h)
h['sites'].each_pair do |site_uid, hs| h['sites'].each_pair do |site_uid, hs|
hs['clusters'].each_pair do |_cluster_uid, hc| hs['clusters'].each_pair do |_cluster_uid, hc|
next if !hc['kavlan'] # skip clusters where kavlan is globally set to false (used for initial cluster installation)
hc['nodes'].each_pair do |node_uid, hn| hc['nodes'].each_pair do |node_uid, hn|
kvl_adapters = hn['network_adapters'].select { |_k,v| v['mountable'] and (v['kavlan'] or not v.has_key?('kavlan')) and v['interface'] == 'Ethernet' } kvl_adapters = hn['network_adapters'].select { |_k,v| v['mountable'] and (v['kavlan'] or not v.has_key?('kavlan')) and v['interface'] == 'Ethernet' }
if kvl_adapters.length > 0 if kvl_adapters.length > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment