Commit Graph

15 Commits

Author SHA1 Message Date
Dmitry Tantsur 519e54b1e9 Migrate System constants to enums
Change-Id: I7159f6f4c998d9a7de085b07aedd0313ea1b1e12
2021-11-18 15:40:41 +01:00
Jacob Anders f7c873fe4a Changing boot device string for vmedia on SuperMicro
On SuperMicro machines (e.g. X11 and X12 models) the device name string
for CD based virtual media is "UsbCd" as opposed to "CD" used by other
vendors.

This change adjust the boot device target string to "UsbCd" if a
SuperMicro machine is detected

Story: 2009663
Task: 43913
Change-Id: I384baf5c27a531be0c4b78e11e1214d6371fa8be
2021-11-18 19:58:19 +10:00
Dmitry Tantsur 559e3ed4c4 Migrate common constants to enums
The new enums are generated by a new script that reads the DMTF
definitions and produced Python code in stdout. Missing items
and docstrings are added because of that.

The change migrates everything from sushy.resources.constants except for
ProtocolType, which has to be untangled from other protocol-related
enums.

This change also misses a release note. The intention is to create one
final release note before the next release.

Change-Id: I863fad54a9703c88aa92993ad0d48d18c50e492a
2021-10-27 11:09:56 +02:00
Dmitry Tantsur 4abea1879f Initial support for secure boot databases
Change-Id: Id35d5b3c1d09718d05f6b2e470412d76d60b5198
2021-02-01 15:03:42 +01:00
Dmitry Tantsur 5425c005e2 Secure boot support: enabling/disabling and resetting keys
Story: #2008270
Task: #41582
Change-Id: I72f8103fe9bb4613ef8c53a3ff08a710dc96c12d
2021-01-13 16:41:39 +01:00
Varsha e348ac8dd5 Add mappings for `system_type`
Create mappings for the system_type of the System resource.
This represents the type of the computer system.

Story: #2005160
Task: #29880

Change-Id: Icf688752791c21c8652e7fc64478ef0307682f1e
2019-03-16 00:35:11 +05:30
Zuul 3ac4cbd42d Merge "Unify sushy models by Redfish schema bundle" 2018-12-12 10:54:45 +00:00
Gabriela Soria c5d13e4385 Add `ChassisCollection` and `Chassis` classes
Add representation of Chassis and ChassisCollection resources.
The Chassis is used to represent a chassis or other physical enclosure
as a Redfish resource.

Also adds the methods get_chassis_collection and get_chassis in the
public API.

Implements: ChassisCollection and Chassis classes
Story: #2003853
Task: #26647

Change-Id: I59083562ff2ab3b18bfeebdabc0f4cfd663d01bb
2018-12-04 01:15:24 -08:00
dnuka 3c7a281422 Unify sushy models by Redfish schema bundle
In the course of sushy library development, we seem to model resources
using the most current schemas at the time. Sometimes DMTF releases
schema bundles that ties all the most recent schemas together thus
ensuring their interoperability.

These changes introduce and update currently implemented sushy models
to comply with the most recent schema bundle[1].
[1]https://www.dmtf.org/documents/redfish-spmf/redfish-schema-bundle-20181

Story: #2004050
Task: #27056

Change-Id: I479bc18f79c6c51644115671ef68a879a94d102e
2018-11-21 11:18:31 +05:30
Debayan Ray d44059483c Add system simple storage resource support
Adds the simple storage resource of Redfish standard schema.
This new resource represents the properties of a storage
controller and its directly-attached devices. This patch
introduces the property ``max_size_bytes`` of
SimpleStorageCollection resource to expose the size of the
largest storage size available among all directly attached
devices available to the System.

Also brought in the common 'Status' (comprising of Health,
HealthRollup and State sub-fields) field and refactored the code
base to use that field across all the Redfish resources.

Story: 1668487
Task: 23041

Change-Id: I512c2507bf78f4a9cf1e2525fd685836387a7581
2018-07-19 07:43:31 +00:00
Ilya Etingof 31cdd0f951 Change BootSourceOverrideMode from BIOS to Legacy
Because this is what DMTF schema [1] requires.

1. https://redfish.dmtf.org/schemas/ComputerSystem.v1_5_0.json

Co-Authored-By: Richard G. Pioso <richard.pioso@dell.com>
Story: 2002635
Task: 22277
Change-Id: Ib158b2ea974a9022893a2fb3400be4017e3ff7b2
2018-06-21 17:25:14 +02:00
Nate Potter 0b9497dfa6 Create mappings for System Indicator LED
Add mappings and constants for the Indicator LED
value in the System class.

Change-Id: I5ecad5d81a6ca1487fab2002d2bc8b57736ab4ef
2018-05-11 14:59:36 +00:00
Nisha Agarwal 8fe2904a62 Adds EthernetInterface to the library
This commit adds the EthernetInterface to the library.
This returns the MAC addresses and its status as a dictionary to
its caller.

This has been tested on HPE Redfish hardware.

Change-Id: If57184d71d244cdc6f04d3f66d56c374d4336d24
2017-10-06 00:41:11 -07:00
Debayan Ray 18febd060f Add System Processor/Memory info
This patch adds 2 new attributes to System:

  memory_summary: <type: namedtuple>
    The memory of the system in general detail. It is a
    namedtuple containing the following:

      `size_gib`: The size of memory of the system in GiB
      `health`: The overall health state of memory.

  processor_summary: <type: namedtuple>
    The processors of the system in general detail. It is a
    namedtuple containing the following:

      `count`: The number of processors in the system. To be
               precise, it is number of logical CPUs (threads).
      `architecture`: The architecture of the processor/s.

This processor and memory information will be directly consumed
by ironic inspection.

Change-Id: I19acd74e26a861147df747f3d3f34852decf5403
2017-05-10 07:38:22 -04:00
Lucas Alvares Gomes bb9f4ada4f Initial commit 2017-02-13 22:04:23 +00:00