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/JsonSchemas/OemCrashdump/OemCrashdump.json b/static/redfish/v1/JsonSchemas/OemCrashdump/OemCrashdump.json
new file mode 100644
index 0000000..604b719
--- /dev/null
+++ b/static/redfish/v1/JsonSchemas/OemCrashdump/OemCrashdump.json
@@ -0,0 +1,120 @@
+{
+ "$id": "http://redfish.dmtf.org/schemas/v1/OemCrashdump.v1_0_0.json",
+ "$schema": "http://redfish.dmtf.org/schemas/v1/redfish-schema-v1.json",
+ "copyright": "Copyright 2014-2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright",
+ "definitions": {
+ "Actions": {
+ "additionalProperties": false,
+ "patternProperties": {
+ "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
+ "description": "This property shall specify a valid odata or Redfish property.",
+ "type": [
+ "array",
+ "boolean",
+ "integer",
+ "number",
+ "null",
+ "object",
+ "string"
+ ]
+ }
+ },
+ "properties": {
+ "#Crashdump.OnDemand": {
+ "$ref": "#/definitions/OnDemand"
+ },
+ "#Crashdump.SendRawPeci": {
+ "$ref": "#/definitions/SendRawPeci"
+ }
+ },
+ "type": "object"
+ },
+ "OnDemand": {
+ "additionalProperties": false,
+ "description": "This action is used to trigger a new on-demand crashdump.",
+ "longDescription": "This action is used to trigger a new on-demand crashdump which is returned immediately.",
+ "parameters": {},
+ "patternProperties": {
+ "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
+ "description": "This property shall specify a valid odata or Redfish property.",
+ "type": [
+ "array",
+ "boolean",
+ "integer",
+ "number",
+ "null",
+ "object",
+ "string"
+ ]
+ }
+ },
+ "properties": {
+ "target": {
+ "description": "Link to invoke action",
+ "format": "uri-reference",
+ "type": "string"
+ },
+ "title": {
+ "description": "Friendly action name",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "SendRawPeci": {
+ "additionalProperties": false,
+ "description": "This action is used to send a raw PECI command to the CPU.",
+ "longDescription": "This action is used to send a raw PECI command to the CPU.",
+ "parameters": {
+ "ClientAddress": {
+ "description": "PECI client address for the command.",
+ "longDescription": "This defines the PECI client address that is the target for this command.",
+ "requiredParameter": true,
+ "type": "integer"
+ },
+ "PECICommand": {
+ "description": "The raw bytes to be sent as the PECI command.",
+ "items": {
+ "type": "integer"
+ },
+ "longDescription": "This defines an array of raw data that is made up of the raw bytes of the PECI command to be sent.",
+ "requiredParameter": true,
+ "type": "array"
+ },
+ "ReadLength": {
+ "description": "Read length parameter for the command",
+ "longDescription": "This defines the read length parameter for this command.",
+ "requiredParameter": true,
+ "type": "integer"
+ }
+ },
+ "patternProperties": {
+ "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message)\\.[a-zA-Z_][a-zA-Z0-9_]*$": {
+ "description": "This property shall specify a valid odata or Redfish property.",
+ "type": [
+ "array",
+ "boolean",
+ "integer",
+ "number",
+ "null",
+ "object",
+ "string"
+ ]
+ }
+ },
+ "properties": {
+ "target": {
+ "description": "Link to invoke action",
+ "format": "uri-reference",
+ "type": "string"
+ },
+ "title": {
+ "description": "Friendly action name",
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "title": "#OemCrashdump.v1_0_0"
+}
diff --git a/static/redfish/v1/JsonSchemas/OemCrashdump/index.json b/static/redfish/v1/JsonSchemas/OemCrashdump/index.json
new file mode 100644
index 0000000..7a19e8e
--- /dev/null
+++ b/static/redfish/v1/JsonSchemas/OemCrashdump/index.json
@@ -0,0 +1,20 @@
+{
+ "@odata.context": "/redfish/v1/$metadata#JsonSchemaFile.JsonSchemaFile",
+ "@odata.id": "/redfish/v1/JsonSchemas/OemCrashdump",
+ "@odata.type": "#JsonSchemaFile.v1_0_2.JsonSchemaFile",
+ "Name": "Oem Crashdump Schema File",
+ "Schema": "#OemCrashdump.OemCrashdump",
+ "Description": "Oem Crashdump Schema File Location",
+ "Id": "OemCrashdump",
+ "Languages": [
+ "en"
+ ],
+ "Languages@odata.count": 1,
+ "Location": [
+ {
+ "Language": "en",
+ "Uri": "/redfish/v1/JsonSchemas/OemCrashdump/OemCrashdump.json"
+ }
+ ],
+ "Location@odata.count": 1
+}