First normalize to bytes and then use byte to null
pad and finally use bytearray to normalize the
2 and 3 to behave the same on indexing and use that
for extending the command.
Change-Id: I9e3e89f5f8ac411c770f1a6371f9b365868e8c87
Normalize as possible to str type, whether that is bytes or unicode.
Fix internal consumers of xraw_command that have bytes expectation that
get broken by memoryview being more bytearray like.
Use io.BytesIO as python3 stdlib doesn't like it's own StringIO.
Change-Id: I0140c8c19421786949a52b0e1fa4b392684a78de
The main spec file can be a challenge for some
to build. Provide a simplistic spec file with
reduced function.
Change-Id: Idc295f3eda7b708f0258f8d0934e3fed6a2950d8
This gives common access to TSM OEM function to redfish
and IPMI (which really is using https here). Should any
function come up which absolutely suggests IPMI use in the
TSM module, it will be conoditionally enabled by ipmi side
and ignored redfish side.
Change-Id: I635e3a1cb2f333930a5b8f2e0dc90c08e4ec72d0
The SMM has a number of account policies. Provide these using
the same vocabulary as XCC account policies.
Change-Id: I0fa12f252468aaab8952763b6824a97aea666e19
Since the expiration warning can block expiration, always
set warning when expiration set.
Aim for 8% of the interval.
Change-Id: Iecffb9c26822a21632b22170607bb2019fb52e29
Rather than passing a value through, cast to int
if the registry is available and instructs us to do
so.
Change-Id: I1b057f15278ba0cd0e98d23b073e3333fb896589
In much the same way system_configuration permits a system to
extensibly describe UEFI/BIOS type configuration, offer OEM modules
a mechanism to do the same for BMC specific settings.
Change-Id: Ic6be1b90247afe9b43af498e90e4d139343a5124
Some redfish implementations support reporting the current
settings, but not changing them.
Support these platforms in an expected way.
Change-Id: Iacce6f35019516b57b5de171044653c96a05a892
Some implementations do not like the way python preserves
% in the host header. Workaround by removing it from the
Host header (it has no meaning for the server anyway).
Change-Id: I49942e9c93f02fc4ee600174db4b51fc03d64d8e
In IPMI, we provided a reasonably viable result for unavailable sensors.
Set unavailable attribute on the reading to indicate this in redfish.
Change-Id: I841dbc8c9660abd84ee59eab9c3006dc51949de3
Some implementations model subchassis. For those, descend
into the subchassis to get those sensors.
Change-Id: I4ed9b3599edffe897821a8571205a75afb6b49f0
Bypass the dependency and value checking when no registry is
available to provide that capability. This allows users contending
with lesser implementations to at least get somewhat further.
Change-Id: I5ac47e42cb6c0e5e2c07ae8c8a68b089e5e2e84a
Check ProcessorSummary before going into each processor.
For each component, skip if Absent.
If the system provides no health info, warn that the health
information is unavailable.
Change-Id: I7cc020ae0ae8a958b0d474a9012921d022979511
Fix the remote media generic path to actually try to work. This
required adding a stub attach function to the generic oemhandler class.
Fix adapter health checks being skipped if no memory errors are seen.
Change-Id: I3c6bc2c32fa63545a89cd005b4fbb2a271dacfbe
BMC side should properly look at the Open RMCP request
and do the appropriate thing. For compatibility, just
run things exactly as they were for the moment.
Change-Id: I2b6671e8672bc1f4e9521823db9122a93405863c
While SHA1 is technically secure in an HMAC, some implementations
no longer allow it by default. Try for SHA256, and if that should
fail, fallback to SHA1 for implementations lacking support.
Change-Id: I6380e042fbe959af4059e63a5620f6289263737c
Since the get_event_log is combining the logs,
provide log_id for calling software to optionally
include to categorize.
Change-Id: Ifafc456b689eb76588ee1102bd7a2c4d9c639ac4
The XCC manifests inadequate license in listing fewer slots.
Provide a more descriptive error message.
Change-Id: I27c77dfee700fc288af8bd5c6b7df65ec64616d1
Generally speaking, this is all BMCs know to do anyway.
Some make the distinction and refuse the Force variant,
so go for the Graceful.
Change-Id: I093261e46b8ce7305d8be9938e45579cfc367110