nextifHPC_SWITCHES.include?(n0['nickname'])orHPC_SWITCHES.include?(n1['nickname'])# FIXME we ignore problems with HPC switches for now
# this is a link between network equipment
iflinks.count(l)%2!=0
puts"ERROR: link between two network equipments should have 2 instances (or 4, 6, 8 in case of aggregation): #{l} (actual count: #{links.count(l)})"
iflinknicks.count(l)%2!=0
puts"ERROR: link between two network equipments should have 2 instances (or 4, 6, 8 in case of aggregation): #{l} (actual count: #{linknicks.count(l)})"
ok=false
end
else
iflinks.count(l)!=1
puts"ERROR: duplicate link : #{l} (actual count: #{links.count(l)})"
iflinknicks.count(l)!=1
puts"ERROR: duplicate link : #{l} (actual count: #{linknicks.count(l)})"