The rsd_lib.resources.v2_3.node.node Module

class rsd_lib.resources.v2_3.node.node.AttachEndpointActionField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

action_info = None
action_info_path = <sushy.resources.base.Field object>
target_uri = <sushy.resources.base.Field object>
class rsd_lib.resources.v2_3.node.node.DetachEndpointActionField(*args, **kwargs)

Bases: sushy.resources.base.CompositeField

action_info = None
action_info_path = <sushy.resources.base.Field object>
target_uri = <sushy.resources.base.Field object>
class rsd_lib.resources.v2_3.node.node.Node(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None, root=None)

Bases: rsd_lib.resources.v2_1.node.node.Node

attach_endpoint(resource, protocol=None)

Attach endpoint from available pool to composed node

Parameters
  • resource – Link to endpoint to attach.

  • protocol – Protocol of the remote drive.

Raises

InvalidParameterValueError

clear_tpm_on_delete = <sushy.resources.base.Field object>

This is used to specify if TPM module should be cleared on composed node DELETE request

detach_endpoint(resource)

Detach endpoint from available pool to composed node

Parameters

resource – Link to endpoint to detach.

Raises

InvalidParameterValueError

get_allowed_attach_endpoints()

Get the allowed endpoints for attach action.

Returns

A set with the allowed attach endpoints.

get_allowed_detach_endpoints()

Get the allowed endpoints for detach action.

Returns

A set with the allowed detach endpoints.

refresh(force=True)

Refresh the resource

Freshly retrieves/fetches the resource attributes and invokes _parse_attributes() method on successful retrieval. It is recommended not to override this method in concrete ResourceBase classes. Resource classes can place their refresh specific operations in _do_refresh() method, if needed. This method represents the template method in the paradigm of Template design pattern.

Parameters
  • force – if set to False, will only refresh if the resource is marked as stale, otherwise neither it nor its subresources will be refreshed.

  • json_doc – parsed JSON document in form of Python types.

Raises

ResourceNotFoundError

Raises

ConnectionError

Raises

HTTPError

update(clear_tpm_on_delete)

Update properties of this composed node

Parameters

clear_tpm_on_delete – This is used to specify if TPM module should be cleared on composed node DELETE request.

Raises

InvalidParameterValueError, if any information passed is invalid.

class rsd_lib.resources.v2_3.node.node.NodeActionsField(*args, **kwargs)

Bases: rsd_lib.resources.v2_1.node.node.NodeActionsField

attach_endpoint = <rsd_lib.resources.v2_3.node.node.AttachEndpointActionField object>
detach_endpoint = <rsd_lib.resources.v2_3.node.node.DetachEndpointActionField object>
class rsd_lib.resources.v2_3.node.node.NodeCollection(connector, path, redfish_version=None, registries=None, root=None)

Bases: rsd_lib.resources.v2_2.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.