rsd_lib.resources.v2_3.node.node
Module¶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>¶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>¶rsd_lib.resources.v2_3.node.node.
Node
(connector, path='', redfish_version=None, registries=None, reader=None)¶Bases: rsd_lib.resources.v2_1.node.node.Node
attach_endpoint
(resource, protocol=None)¶Attach endpoint from available pool to composed node
Parameters: |
|
---|---|
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. |
---|---|
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. |
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>¶rsd_lib.resources.v2_3.node.node.
NodeCollection
(connector, path, redfish_version=None, registries=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: |
|
---|---|
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.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.