Mentions légales du service

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

[gen] [wiki] [hardware] Allow to sort SR-IOV table by total number of VFs

parent b1bb0a3f
No related branches found
No related tags found
1 merge request!269[wiki] Add SR-IOV information and improve network tables
......@@ -513,6 +513,7 @@ class G5KHardwareGenerator < WikiGenerator
interfaces = {}
interfaces['details'] = node_interfaces.map{ |v| v['device'] + (v['name'].nil? ? '' : '/' + v['name']) + " (#{v['sriov_totalvfs']} VFs)" }.sort.join(', ')
interfaces['vfs_sum'] = node_interfaces.map{ |v| v['sriov_totalvfs'] }.sum
interface_add(network_interfaces, node_uid, interfaces) if node_interfaces.count > 0
end
}
......@@ -523,7 +524,7 @@ class G5KHardwareGenerator < WikiGenerator
"[[#{site_uid.capitalize}:Network|#{site_uid.capitalize}]]",
"[[#{site_uid.capitalize}:Hardware##{cluster_uid}" + "|#{cluster_uid}" + (network_interfaces.size==1 ? '' : '-' + G5K.nodeset(num)) + "]]",
num.count,
interfaces['details']
"data-sort-value=\"#{interfaces['vfs_sum']}\"|#{interfaces['details']}"
]
}
}
......
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