#
e5940634 |
| 22-Nov-2024 |
Patrick Williams <patrick@stwcx.xyz> |
extension: use map in create extension
Adjust the Create extension to use a map for metadata instead of vector.
Tested: Unit tests updated and passing.
Signed-off-by: Patrick Williams <patrick@stw
extension: use map in create extension
Adjust the Create extension to use a map for metadata instead of vector.
Tested: Unit tests updated and passing.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9bd62b8dcc8b18a61958ed64de98b52a48333637
show more ...
|
#
7ae2fa69 |
| 18-Dec-2019 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Allow adding to AdditionalData
Add an interface to add a key/value pair to the data stored in the AdditionalData class. Also add an interface to get to the raw underlying map of data.
Signed-
PEL: Allow adding to AdditionalData
Add an interface to add a key/value pair to the data stored in the AdditionalData class. Also add an interface to get to the raw underlying map of data.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I61200f92b45be8e86992d3f4888698d6a5bbe251
show more ...
|
#
afa857c7 |
| 24-Oct-2019 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Save AdditionalData in a UserData section
Save the contents of the AdditionalData OpenBMC event log property as JSON in a UserData PEL section.
For example, if the AdditionalData property, whi
PEL: Save AdditionalData in a UserData section
Save the contents of the AdditionalData OpenBMC event log property as JSON in a UserData PEL section.
For example, if the AdditionalData property, which is an array of strings, looks like: ["KEY1=VALUE1", "KEY=VALUE2"]
Then the data stored as ASCII text in the UserData section is: {"KEY1":"VALUE1","KEY2":"VALUE2"}
If one of the keys is "ESEL", then that entry is removed from the UserData output as that contains a full raw PEL from the host sent down as ASCII text.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ia6ffabb39fdb4315ec2152744414e44f7d2ec4aa
show more ...
|
#
15ee6aee |
| 08-Jul-2019 |
Matt Spinler <spinler@us.ibm.com> |
PEL: Add class to wrap AdditionalData
The AdditionalData property on the xyz.openbmc_project.Logging.Entry interface is a vector of strings of the form: "KEY=VALUE". The PEL processing code will b
PEL: Add class to wrap AdditionalData
The AdditionalData property on the xyz.openbmc_project.Logging.Entry interface is a vector of strings of the form: "KEY=VALUE". The PEL processing code will be interested in those keys and values, and this class adds a way to get at those values based on a key without having to do string parsing each time. It returns an std::optional<std::string> value, and if the key isn't found, then the std::optional value will be empty.
For Example: AdditionalData ad{additionalDataPropertyValue};
// Get the value for the FOO key std::optional<std::string> val = ad.getValue("FOO");
if (val) std::cout << (*val).size();
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I6ba458840278784b1cc6a0ed88a7fece8794df7d
show more ...
|