sushy.resources.chassis package

Subpackages

Submodules

sushy.resources.chassis.chassis module

class sushy.resources.chassis.chassis.ActionsField(*args, **kwargs)

Bases: CompositeField

reset = <sushy.resources.common.ResetActionField object>
class sushy.resources.chassis.chassis.Chassis(connector, identity, redfish_version=None, registries=None, root=None)

Bases: ResourceBase

Chassis resource

The Chassis represents the physical components of a system. This resource represents the sheet-metal confined spaces and logical zones such as racks, enclosures, chassis and all other containers.

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

The user assigned asset tag of this chassis

chassis_type = <sushy.resources.base.MappedField object>

The type of physical form factor of the chassis

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

Depth in millimeters The depth of the chassis. The value of this property shall represent the depth (length) of the chassis (in millimeters) as specified by the manufacturer.

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

The chassis description

get_allowed_reset_chassis_values()

Get the allowed values for resetting the chassis.

Returns:

A set of allowed values.

Raises:

MissingAttributeError, if Actions/#Chassis.Reset attribute not present.

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

Height in millimeters The height of the chassis. The value of this property shall represent the height of the chassis (in millimeters) as specified by the manufacturer.

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

Identifier for the chassis

indicator_led = <sushy.resources.base.MappedField object>

The state of the indicator LED, used to identify the chassis

property managers

A list of managers for this chassis.

Returns a list of Manager objects representing the managers that manage this chassis.

Raises:

MissingAttributeError if @odata.id’ field is missing.

Returns:

A list of Manager instances

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

The manufacturer of this chassis

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

The model number of the chassis

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

The chassis name

property network_adapters

Property to reference NetworkAdapterCollection instance

It is set once when the first time it is queried. On refresh, this property is marked as stale (greedy-refresh not done). Here the actual refresh of the sub-resource happens, if stale.

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

The part number of the chassis

physical_security = <sushy.resources.chassis.chassis.PhysicalSecurity object>

PhysicalSecurity This value of this property shall contain the sensor state of the physical security.

property power

Property to reference Power instance

It is set once when the first time it is queried. On refresh, this property is marked as stale (greedy-refresh not done). Here the actual refresh of the sub-resource happens, if stale.

power_state = <sushy.resources.base.MappedField object>

The current power state of the chassis

reset_chassis(value)

Reset the chassis.

Parameters:

value – The target value.

Raises:

InvalidParameterValueError, if the target value is not allowed.

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

The serial number of the chassis

set_indicator_led(state)

Set IndicatorLED to the given state.

Parameters:

state – Desired LED state, an IndicatorLED value.

Raises:

InvalidParameterValueError, if any information passed is invalid.

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

Stock-keeping unit number (SKU) The value of this property shall be the stock-keeping unit number for this chassis.

status = <sushy.resources.common.StatusField object>

Status and Health This property describes the status and health of the chassis and its children.

property systems

A list of systems residing in this chassis.

Returns a list of System objects representing systems being mounted in this chassis/cabinet.

Raises:

MissingAttributeError if @odata.id’ field is missing.

Returns:

A list of System instances

property thermal

Property to reference Thermal instance

It is set once when the first time it is queried. On refresh, this property is marked as stale (greedy-refresh not done). Here the actual refresh of the sub-resource happens, if stale.

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

The Universal Unique Identifier (UUID) for this Chassis.

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

Weight in kilograms The value of this property shall represent the published mass (commonly referred to as weight) of the chassis (in kilograms).

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

Width in millimeters The value of this property shall represent the width of the chassis (in millimeters) as specified by the manufacturer.

class sushy.resources.chassis.chassis.ChassisCollection(connector, path, redfish_version=None, registries=None, root=None)

Bases: ResourceCollectionBase

class sushy.resources.chassis.chassis.PhysicalSecurity(*args, **kwargs)

Bases: CompositeField

intrusion_sensor = <sushy.resources.base.MappedField object>

IntrusionSensor This indicates the known state of the physical security sensor, such as if it is hardware intrusion detected.

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

A numerical identifier to represent the physical security sensor

intrusion_sensor_re_arm = <sushy.resources.base.MappedField object>

This indicates how the Normal state to be restored

sushy.resources.chassis.constants module

class sushy.resources.chassis.constants.ChassisType(value)

Bases: Enum

Chassis Types constants

BLADE = 'Blade'

An enclosed or semi-enclosed, typically vertically-oriented, system chassis that must be plugged into a multi-system chassis to function normally.

CARD = 'Card'

A loose device or circuit board intended to be installed in a system or other enclosure.

CARTRIDGE = 'Cartridge'

A small self-contained system intended to be plugged into a multi- system chassis.

COMPONENT = 'Component'

A small chassis, card, or device that contains devices for a particular subsystem or function.

DRAWER = 'Drawer'

An enclosed or semi-enclosed, typically horizontally-oriented, system chassis that can be slid into a multi-system chassis.

ENCLOSURE = 'Enclosure'

A generic term for a chassis that does not fit any other description.

EXPANSION = 'Expansion'

A chassis that expands the capabilities or capacity of another chassis.

IP_BASED_DRIVE = 'IPBasedDrive'

A chassis in a drive form factor with IP-based network connections.

MODULE = 'Module'

A small, typically removable, chassis or card that contains devices for a particular subsystem or function.

OTHER = 'Other'

A chassis that does not fit any of these definitions.

POD = 'Pod'

A collection of equipment racks in a large, likely transportable, container.

RACK = 'Rack'

An equipment rack, typically a 19-inch wide freestanding unit.

RACK_GROUP = 'RackGroup'

A group of racks that form a single entity or share infrastructure.

RACK_MOUNT = 'RackMount'

A single-system chassis designed specifically for mounting in an equipment rack.

ROW = 'Row'

A collection of equipment racks.

SHELF = 'Shelf'

An enclosed or semi-enclosed, typically horizontally-oriented, system chassis that must be plugged into a multi-system chassis to function normally.

SIDECAR = 'Sidecar'

A chassis that mates mechanically with another chassis to expand its capabilities or capacity.

SLED = 'Sled'

An enclosed or semi-enclosed, system chassis that must be plugged into a multi-system chassis to function normally similar to a blade type chassis.

STAND_ALONE = 'StandAlone'

A single, free-standing system, commonly called a tower or desktop chassis.

STORAGE_ENCLOSURE = 'StorageEnclosure'

A chassis that encloses storage.

ZONE = 'Zone'

A logical division or portion of a physical chassis that contains multiple devices or systems that cannot be physically separated.

class sushy.resources.chassis.constants.IntrusionSensor(value)

Bases: Enum

Chassis IntrusionSensor constants

HARDWARE_INTRUSION = 'HardwareIntrusion'

A door, lock, or other mechanism protecting the internal system hardware from being accessed is detected to be in an insecure state.

NORMAL = 'Normal'

No abnormal physical security condition is detected at this time.

TAMPERING_DETECTED = 'TamperingDetected'

Physical tampering of the monitored entity is detected.

class sushy.resources.chassis.constants.IntrusionSensorReArm(value)

Bases: Enum

Chassis IntrusionSensorReArm constants

AUTOMATIC = 'Automatic'

Because no abnormal physical security condition is detected, this sensor is automatically restored to the normal state.

MANUAL = 'Manual'

A manual re-arm of this sensor restores it to the normal state.

Module contents