The rsd_lib.resources.v2_2.node.node Module

class rsd_lib.resources.v2_2.node.node.NodeCollection(connector, path, redfish_version=None, registries=None)

Bases: rsd_lib.resources.v2_1.node.node.NodeCollection

compose_node(name=None, description=None, processor_req=None, memory_req=None, remote_drive_req=None, local_drive_req=None, ethernet_interface_req=None, security_req=None, total_system_core_req=None, total_system_memory_req=None)

Compose a node from RackScale hardware

Parameters
  • name – Name of node

  • description – Description of node

  • processor_req – JSON for node processors

  • memory_req – JSON for node memory modules

  • remote_drive_req – JSON for node remote drives

  • local_drive_req – JSON for node local drives

  • ethernet_interface_req – JSON for node ethernet ports

  • security_req – JSON for node security requirements

  • total_system_core_req – Total processor cores available in composed node

  • total_system_memory_req – Total memory available in composed node

Returns

The location of the composed node

When the ‘processor_req’ is not none: it need a computer system contains processors whose each processor meet all conditions in the value.

When the ‘total_system_core_req’ is not none: it need a computer system contains processors whose cores sum up to number equal or greater than ‘total_system_core_req’.

When both values are not none: it need meet all conditions.

‘memory_req’ and ‘total_system_memory_req’ is the same.