sushy.resources.manager package¶
Submodules¶
sushy.resources.manager.constants module¶
-
sushy.resources.manager.constants.
COMMAND_SHELL_IPMI
= 'command shell ipmi'¶ Command Shell connection using the IPMI Serial-over-LAN (SOL) protocol
-
sushy.resources.manager.constants.
COMMAND_SHELL_OEM
= 'command shell oem'¶ Command Shell connection using an OEM-specific protocol
-
sushy.resources.manager.constants.
COMMAND_SHELL_SSH
= 'command shell ssh'¶ Command Shell connection using the SSH protocol
-
sushy.resources.manager.constants.
COMMAND_SHELL_TELNET
= 'command shell telnet'¶ Command Shell connection using the Telnet protocol
-
sushy.resources.manager.constants.
GRAPHICAL_CONSOLE_KVMIP
= 'graphical console kvmip'¶ Graphical Console connection using a KVM-IP (redirection of Keyboard, Video, Mouse over IP) protocol
-
sushy.resources.manager.constants.
GRAPHICAL_CONSOLE_OEM
= 'graphical console oem'¶ Graphical Console connection using an OEM-specific protocol
-
sushy.resources.manager.constants.
MANAGER_TYPE_AUXILIARY_CONTROLLER
= 'auxiliary controller'¶ A controller which provides management functions for a particular subsystem or group of devices
-
sushy.resources.manager.constants.
MANAGER_TYPE_BMC
= 'bmc'¶ A controller which provides management functions for a single computer system
-
sushy.resources.manager.constants.
MANAGER_TYPE_ENCLOSURE_MANAGER
= 'enclosure manager'¶ A controller which provides management functions for a chassis or group of devices or systems
-
sushy.resources.manager.constants.
MANAGER_TYPE_MANAGEMENT_CONTROLLER
= 'management controller'¶ A controller used primarily to monitor or manage the operation of a device or system
-
sushy.resources.manager.constants.
MANAGER_TYPE_RACK_MANAGER
= 'rack manager'¶ A controller which provides management functions for a whole or part of a rack
-
sushy.resources.manager.constants.
RESET_MANAGER_FORCE_RESTART
= 'force restart'¶ Perform an immediate (non-graceful) shutdown, followed by a restart
-
sushy.resources.manager.constants.
RESET_MANAGER_GRACEFUL_RESTART
= 'graceful restart'¶ Perform a graceful shutdown followed by a restart of the system
-
sushy.resources.manager.constants.
SERIAL_CONSOLE_IPMI
= 'serial console ipmi'¶ Serial Console connection using the IPMI Serial-over-LAN (SOL) protocol
-
sushy.resources.manager.constants.
SERIAL_CONSOLE_OEM
= 'serial console oem'¶ Serial Console connection using an OEM-specific protocol
-
sushy.resources.manager.constants.
SERIAL_CONSOLE_SSH
= 'serial console ssh'¶ Serial Console connection using the SSH protocol
-
sushy.resources.manager.constants.
SERIAL_CONSOLE_TELNET
= 'serial console telnet'¶ Serial Console connection using the Telnet protocol
sushy.resources.manager.manager module¶
-
class
sushy.resources.manager.manager.
ActionsField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
reset
= <sushy.resources.common.ResetActionField object>¶
-
-
class
sushy.resources.manager.manager.
Manager
(connector, identity, redfish_version=None, registries=None)¶ Bases:
sushy.resources.base.ResourceBase
-
auto_dst_enabled
= <sushy.resources.base.Field object>¶ Indicates whether the manager is configured for automatic DST adjustment
-
property
chassis
¶ A list of chassis managed by this manager.
Returns a list of Chassis objects representing the chassis or cabinets managed by this manager.
- Raises
MissingAttributeError if ‘@odata.id’ field is missing.
- Returns
A list of Chassis instances
-
command_shell
= <sushy.resources.manager.manager.RemoteAccessField object>¶ A dictionary containing the remote access support service via command shell (e.g. Telnet, SSH) and max concurrent sessions
-
description
= <sushy.resources.base.Field object>¶ The manager description
-
firmware_version
= <sushy.resources.base.Field object>¶ The manager firmware version
-
get_allowed_reset_manager_values
()¶ Get the allowed values for resetting the manager.
- Returns
A set of allowed values.
- Raises
MissingAttributeError, if Actions/#Manager.Reset attribute not present.
-
get_supported_command_shell_types
()¶ Get the supported values for Command Shell connection types.
- Returns
A set of supported values.
-
get_supported_graphical_console_types
()¶ Get the supported values for Graphical Console connection types.
- Returns
A set of supported values.
-
get_supported_serial_console_types
()¶ Get the supported values for Serial Console connection types.
- Returns
A set of supported values.
-
graphical_console
= <sushy.resources.manager.manager.RemoteAccessField object>¶ A dictionary containing the remote access support service via graphical console (e.g. KVMIP) and max concurrent sessions
-
identity
= <sushy.resources.base.Field object>¶ The manager identity string
-
manager_type
= <sushy.resources.base.MappedField object>¶ The manager type
-
model
= <sushy.resources.base.Field object>¶ The manager model
-
name
= <sushy.resources.base.Field object>¶ The manager name
-
reset_manager
(value)¶ Reset the manager.
- Parameters
value – The target value.
- Raises
InvalidParameterValueError, if the target value is not allowed.
-
serial_console
= <sushy.resources.manager.manager.RemoteAccessField object>¶ A dictionary containing the remote access support service via serial console (e.g. Telnet, SSH, IPMI) and max concurrent sessions
-
property
systems
¶ A list of systems managed by this manager.
Returns a list of System objects representing systems being managed by this manager.
- Raises
MissingAttributeError if ‘@odata.id’ field is missing.
- Returns
A list of System instances
-
uuid
= <sushy.resources.base.Field object>¶ The manager UUID
-
property
virtual_media
¶
-
-
class
sushy.resources.manager.manager.
ManagerCollection
(connector, path, redfish_version=None, registries=None)¶
-
class
sushy.resources.manager.manager.
RemoteAccessField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
connect_types_supported
= <sushy.resources.base.Field object>¶
-
max_concurrent_sessions
= <sushy.resources.base.Field object>¶
-
service_enabled
= <sushy.resources.base.Field object>¶
-
sushy.resources.manager.mappings module¶
sushy.resources.manager.virtual_media module¶
-
class
sushy.resources.manager.virtual_media.
ActionsField
(*args, **kwargs)¶ Bases:
sushy.resources.base.CompositeField
-
eject_media
= <sushy.resources.common.ActionField object>¶
-
insert_media
= <sushy.resources.common.ActionField object>¶
-
-
class
sushy.resources.manager.virtual_media.
VirtualMedia
(connector, path='', redfish_version=None, registries=None, reader=None, json_doc=None)¶ Bases:
sushy.resources.base.ResourceBase
-
connected_via
= <sushy.resources.base.MappedField object>¶ Current virtual media connection methods
Applet: Connected to a client application NotConnected: No current connection Oem: Connected via an OEM-defined method URI: Connected to a URI location
-
eject_media
()¶ Detach remote media from virtual media
After ejecting media inserted will be False and image_name will be empty.
-
identity
= <sushy.resources.base.Field object>¶ Virtual Media resource identity string
-
image
= <sushy.resources.base.Field object>¶ A URI providing the location of the selected image
-
image_name
= <sushy.resources.base.Field object>¶ The image name
-
insert_media
(image, inserted=True, write_protected=False)¶ Attach remote media to virtual media
- Parameters
image – a URI providing the location of the selected image
inserted – specify if the image is to be treated as inserted upon completion of the action.
write_protected – indicates the media is write protected
-
inserted
= <sushy.resources.base.Field object>¶ Indicates if virtual media is inserted in the virtual device
-
media_types
= <sushy.resources.base.Field object>¶ List of supported media types as virtual media
-
name
= <sushy.resources.base.Field object>¶ The name of resource
-
write_protected
= <sushy.resources.base.Field object>¶ Indicates the media is write protected
-
-
class
sushy.resources.manager.virtual_media.
VirtualMediaCollection
(connector, path, redfish_version=None, registries=None)¶ Bases:
sushy.resources.base.ResourceCollectionBase
A collection of virtual media attached to a Manager