Update dump create interface to accept a set of parameters.
The existing method CreateDump in xyz.openbmc_project.Dump.Create
doesn't accept any parameters. A type of IBM host-specific dump
requires additional parameters to create user-initiated dumps.
To solve this problem extending the existing createDump method
to accept additional parameters in Key, Value pair format.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I85a9f616cf4f325aadbbdd1368bc77c648f26c5c
diff --git a/xyz/openbmc_project/Dump/Create.interface.yaml b/xyz/openbmc_project/Dump/Create.interface.yaml
index d17d537..3112b75 100644
--- a/xyz/openbmc_project/Dump/Create.interface.yaml
+++ b/xyz/openbmc_project/Dump/Create.interface.yaml
@@ -14,6 +14,25 @@
- name: CreateDump
description: >
Method to create a manual Dump.
+ parameters:
+ - name: AdditionalData
+ type: dict[string, string]
+ description: >
+ The additional data, if any, for initiating the dump.
+ The key in this case should be an implementation
+ specific enum defined for the specific type of dump
+ either in xyz or in a domain.
+ The enum-format string is required to come from a
+ parallel class with this specific Enum name.
+ All of the Enum strings should be in the format
+ 'domain.Dump.Create.CreateParameters.ParamName'.
+ e.g.:
+ {
+ "key1": "value1",
+ "key2": "value2"
+ }
+ ends up in AdditionaData like:
+ ["KEY1=value1", "KEY2=value2"]
returns:
- name: Path
type: object_path