Move Crashdump to OemCrashdump
All other Oem Schemas start with Oem.
This is used by the update_schemas.py to determine an Oem
schema and is a reasonable requirement for Oem schemas.
https://github.com/openbmc/bmcweb/blob/a3268f98f308ca7c8660b1ace44d5b9a40be204b/scripts/update_schemas.py#L43
Tested: Ran the validator against this change on a Witherspoon
with BMCWEB_ENABLE_REDFISH_CPU_LOG enabled and OemCheck
true. Validator passed. Might be worth running on a
system that actually uses BMCWEB_ENABLE_REDFISH_CPU_LOG.
curl -k https://${bmc}/redfish/v1/Systems/system/LogServices/Crashdump
{
"@odata.context": "/redfish/v1/$metadata#LogService.LogService",
"@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump",
"@odata.type": "#LogService.v1_1_0.LogService",
"Actions": {
"#LogService.ClearLog": {
"target": "/redfish/v1/Systems/system/LogServices/Crashdump/Actions/LogService.ClearLog"
},
"Oem": {
"#Crashdump.OnDemand": {
"target": "/redfish/v1/Systems/system/LogServices/Crashdump/Actions/Oem/Crashdump.OnDemand"
}
}
},
"Description": "Oem Crashdump Service",
"Entries": {
"@odata.id": "/redfish/v1/Systems/system/LogServices/Crashdump/Entries"
},
"Id": "Oem Crashdump",
"MaxNumberOfRecords": 3,
"Name": "Open BMC Oem Crashdump Service",
"OverWritePolicy": "WrapsWhenFull"
}
Change-Id: Iacc11be1284b99c2ed9a6c2ca0a936bd97855afb
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/static/redfish/v1/schema/OemCrashdump_v1.xml b/static/redfish/v1/schema/OemCrashdump_v1.xml
new file mode 100644
index 0000000..10e5ff6
--- /dev/null
+++ b/static/redfish/v1/schema/OemCrashdump_v1.xml
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
+ <edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/csd01/complete/vocabularies/Org.OData.Core.V1.xml">
+ <edmx:Include Namespace="Org.OData.Core.V1" Alias="OData" />
+ </edmx:Reference>
+ <edmx:Reference Uri="http://redfish.dmtf.org/schemas/v1/LogService_v1.xml">
+ <edmx:Include Namespace="LogService"/>
+ <edmx:Include Namespace="LogService.v1_0_0"/>
+ </edmx:Reference>
+
+ <edmx:DataServices>
+ <Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="OemCrashdump.v1_0_0">
+ <Action Name="OnDemand" IsBound="true">
+ <Parameter Name="LogService" Type="LogService.v1_0_0.OemActions"/>
+ <Annotation Term="OData.Description" String="This action is used to trigger a new on-demand crashdump." />
+ <Annotation Term="OData.LongDescription" String="This action is used to trigger a new on-demand crashdump which is returned immediately." />
+ </Action>
+
+ <Action Name="SendRawPeci" IsBound="true">
+ <Parameter Name="LogService" Type="LogService.v1_0_0.OemActions"/>
+ <Parameter Name="ClientAddress" Type="Edm.Int64" Nullable="false">
+ <Annotation Term="OData.Description" String="PECI client address for the command." />
+ <Annotation Term="OData.LongDescription" String="This defines the PECI client address that is the target for this command." />
+ </Parameter>
+ <Parameter Name="ReadLength" Type="Edm.Int64" Nullable="false">
+ <Annotation Term="OData.Description" String="Read length parameter for the command" />
+ <Annotation Term="OData.LongDescription" String="This defines the read length parameter for this command." />
+ </Parameter>
+ <Parameter Name="PECICommand" Type="Collection(Edm.Int64)" Nullable="false">
+ <Annotation Term="OData.Description" String="The raw bytes to be sent as the PECI command." />
+ <Annotation Term="OData.LongDescription" String="This defines an array of raw data that is made up of the raw bytes of the PECI command to be sent." />
+ </Parameter>
+ <Annotation Term="OData.Description" String="This action is used to send a raw PECI command to the CPU." />
+ <Annotation Term="OData.LongDescription" String="This action is used to send a raw PECI command to the CPU." />
+ </Action>
+ </Schema>
+ </edmx:DataServices>
+</edmx:Edmx>