Add Entry and create parameters enum for resource dump.
Resource dump is a dump created by hypervisor with a set of
contents based on the provided resource selector. This commit
add an entry and additional parameters for creating a
resource dump.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I9e7b6a71f269e4918f646feb381c575ffa59c172
diff --git a/com/ibm/Dump/Create.interface.yaml b/com/ibm/Dump/Create.interface.yaml
new file mode 100644
index 0000000..4ab4522
--- /dev/null
+++ b/com/ibm/Dump/Create.interface.yaml
@@ -0,0 +1,20 @@
+description: >
+ Implement this to pass additional parameters to the create dump.
+ Each required parameter for the dump in the ibm domain should be added
+ here as an enum.
+
+enumerations:
+ - name: CreateParameters
+ description:
+ Additional parameters for creating the dump.
+ values:
+ - name: 'VSPString'
+ description: >
+ The resouce dump is collected from various host resources.
+ The resource to collect the dump is indicated by using the
+ resource selector.
+ The resource selector string needs to be passed to host to
+ generate a resource dump.
+ - name: 'Password'
+ description: >
+ The password for authenticating the resource dump request.
diff --git a/com/ibm/Dump/Entry/Resource.interface.yaml b/com/ibm/Dump/Entry/Resource.interface.yaml
new file mode 100644
index 0000000..da5332f
--- /dev/null
+++ b/com/ibm/Dump/Entry/Resource.interface.yaml
@@ -0,0 +1,26 @@
+description: >
+ Implement this to add Resource dump management.
+
+ The resource dumps are special types of dumps
+ generated by host hypervisor. The dump is generated
+ based on the resource selector. Hyperviosr needs
+ a password to validate the request before creating the dump.
+
+properties:
+ - name: SourceDumpId
+ type: uint32
+ description: >
+ The dump id provided by the source of the dump.
+ There are dumps which get generated outside the BMC, like a
+ resource dump which gets generated and stored in the host memory.
+ All dumps will have a unique id but when communicating
+ to the source of the dump the SourceDumpId will be used.
+ - name: VSPString
+ type: string
+ description: >
+ The resource selector for generating the dump.
+ - name: Password
+ type: string
+ description: >
+ The password required by host to validate the request.
+