Commit a0c6a13c authored by Jérémie Gaidamour's avatar Jérémie Gaidamour
Browse files

[rake] oar:generate - Adapt node script to export eth20g/40g parameters

parent acaa38e1
......@@ -36,6 +36,12 @@ module Grid5000
ib10g = properties['network_adapters'].detect{|na| na['interface'] =~ /infiniband/i && na['rate'] == 10_000_000_000}
h['ib10g'] = ib10g.nil? ? "NO" : "YES"
h['ib10gmodel'] = ib10g.nil? ? "none" : ib10g['version']
ib20g = properties['network_adapters'].detect{|na| na['interface'] =~ /infiniband/i && na['rate'] == 20_000_000_000}
h['ib20g'] = ib20g.nil? ? "NO" : "YES"
h['ib20gmodel'] = ib20g.nil? ? "none" : ib20g['version']
ib40g = properties['network_adapters'].detect{|na| na['interface'] =~ /infiniband/i && na['rate'] == 40_000_000_000}
h['ib40g'] = ib40g.nil? ? "NO" : "YES"
h['ib40gmodel'] = ib40g.nil? ? "none" : ib40g['version']
myri10g = properties['network_adapters'].detect{|na| na['interface'] =~ /myri/i && na['rate'] == 10_000_000_000}
h['myri10g'] = myri10g.nil? ? "NO" : "YES"
h['myri10gmodel'] = myri10g.nil? ? "none" : myri10g['version']
......
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