Commit e85f5715 authored by DELABROYE Dimitri's avatar DELABROYE Dimitri

[generators/wiki] make sure infiniband with PKEY are not count see #9417

parent c4158493
......@@ -209,7 +209,8 @@ def get_hardware(sites)
hard['storage_description'] = storage_description.map { |e| [ e['count'] > 1 ? "\n*" : '', G5K.get_size(e['size']), e['tech'], e['interface'], e['model'], ' (driver: ' + (e['driver'] || 'MISSING') + ', path: ' + (e['path'] || 'MISSING') + ')'].join(' ') }.join('<br />')
network = node_hash['network_adapters'].select { |k, v|
v['management'] == false
v['management'] == false &&
(k =~ /\./).nil? # exclude PKEY / VLAN interfaces see #9417
}.map{|k, v| {
'rate' => v['rate'],
'interface' => v['interface'],
......@@ -233,7 +234,8 @@ def get_hardware(sites)
}.to_s # round to Mbps
network_description = node_hash['network_adapters'].select { |k, v|
v['management'] == false
v['management'] == false &&
(k =~ /\./).nil? # exclude PKEY / VLAN interface see #9417
}.map{ |k, v|
{
'device' => k,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment