diff options
author | Jayanth Othayoth <ojayanth@in.ibm.com> | 2017-05-18 23:31:32 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-06-03 17:17:11 +0000 |
commit | 02dcec3c5ca2e38c22fcc83f98ee82ca5aeeccf4 (patch) | |
tree | d54f3e4276643d28f7fb4b357bbf563589d24a01 /xyz/openbmc_project | |
parent | f1ba67758a153513bc7cf86b0070866c9b0d612b (diff) | |
download | phosphor-dbus-interfaces-02dcec3c5ca2e38c22fcc83f98ee82ca5aeeccf4.tar.gz phosphor-dbus-interfaces-02dcec3c5ca2e38c22fcc83f98ee82ca5aeeccf4.zip |
Add interface to create BMC Dump.
Change-Id: I7cf363917f7d21664cd60433f23335b94f095147
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
Diffstat (limited to 'xyz/openbmc_project')
-rw-r--r-- | xyz/openbmc_project/Common/File.errors.yaml | 3 | ||||
-rw-r--r-- | xyz/openbmc_project/Common/File.metadata.yaml | 7 | ||||
-rw-r--r-- | xyz/openbmc_project/Dump/Create.errors.yaml | 7 | ||||
-rw-r--r-- | xyz/openbmc_project/Dump/Create.interface.yaml | 17 | ||||
-rw-r--r-- | xyz/openbmc_project/Dump/Create.metadata.yaml | 7 |
5 files changed, 41 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Common/File.errors.yaml b/xyz/openbmc_project/Common/File.errors.yaml index aef5f1d..7c26429 100644 --- a/xyz/openbmc_project/Common/File.errors.yaml +++ b/xyz/openbmc_project/Common/File.errors.yaml @@ -3,3 +3,6 @@ - name: Seek description: Failed to seek a file + +- name: Write + description: Failed to write a file diff --git a/xyz/openbmc_project/Common/File.metadata.yaml b/xyz/openbmc_project/Common/File.metadata.yaml index 5562493..a44d7e2 100644 --- a/xyz/openbmc_project/Common/File.metadata.yaml +++ b/xyz/openbmc_project/Common/File.metadata.yaml @@ -15,3 +15,10 @@ type: int32 - str: "PATH=%s" type: string + +- name: Write + meta: + - str: "ERRNO=%d" + type: int32 + - str: "PATH=%s" + type: string diff --git a/xyz/openbmc_project/Dump/Create.errors.yaml b/xyz/openbmc_project/Dump/Create.errors.yaml new file mode 100644 index 0000000..d3b9667 --- /dev/null +++ b/xyz/openbmc_project/Dump/Create.errors.yaml @@ -0,0 +1,7 @@ +# xyz.openbmc_project.Dump.Create.Error.Disabled +- name: Disabled + description: Dump is disabled on this system. + +# xyz.openbmc_project.Dump.Create.Error.QuotaExceeded +- name: QuotaExceeded + description: Dump not captured due to a cap. diff --git a/xyz/openbmc_project/Dump/Create.interface.yaml b/xyz/openbmc_project/Dump/Create.interface.yaml new file mode 100644 index 0000000..a877687 --- /dev/null +++ b/xyz/openbmc_project/Dump/Create.interface.yaml @@ -0,0 +1,17 @@ +description: > + Implement to capture BMC Dump + +methods: + - name: CreateDump + description: > + Method to create BMC Dump. + returns: + - name: Id + type: uint32 + description: > + The Dump entry id number. + errors: + - xyz.openbmc_project.Common.Error.InternalFailure + - xyz.openbmc_project.Common.File.Error.Write + - xyz.openbmc_project.Dump.Create.Error.Disabled + - xyz.openbmc_project.Dump.Create.Error.QuotaExceeded diff --git a/xyz/openbmc_project/Dump/Create.metadata.yaml b/xyz/openbmc_project/Dump/Create.metadata.yaml new file mode 100644 index 0000000..964d33c --- /dev/null +++ b/xyz/openbmc_project/Dump/Create.metadata.yaml @@ -0,0 +1,7 @@ +- name: Disabled + level: ERR + +- name: QuotaExceeded + meta: + - str: "REASON = %s" + type: string |