DeleteAll and Delete: Added additional errors
The system or object may not be in a state to delete the object
either "permanently" or "temporarily" so the added errors
can be used accordingly by the object implementor.
- xyz.openbmc_project.Common.Error.NotAllowed
- If the object cannot be deleted permanently.
- xyz.openbmc_project.Common.Error.Unavailable
- If the object cannot be deleted temporarily.
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
Change-Id: I1896dba4b936c263880244ee0f8b5248298ab5d1
diff --git a/yaml/xyz/openbmc_project/Collection/DeleteAll.interface.yaml b/yaml/xyz/openbmc_project/Collection/DeleteAll.interface.yaml
index eba6b5f..9bb7d35 100755
--- a/yaml/xyz/openbmc_project/Collection/DeleteAll.interface.yaml
+++ b/yaml/xyz/openbmc_project/Collection/DeleteAll.interface.yaml
@@ -4,3 +4,6 @@
- name: DeleteAll
description: >
Delete all objects in the collection.
+ errors:
+ - xyz.openbmc_project.Common.Error.NotAllowed
+ - xyz.openbmc_project.Common.Error.Unavailable
diff --git a/yaml/xyz/openbmc_project/Object/Delete.interface.yaml b/yaml/xyz/openbmc_project/Object/Delete.interface.yaml
index e1677b3..de592d3 100644
--- a/yaml/xyz/openbmc_project/Object/Delete.interface.yaml
+++ b/yaml/xyz/openbmc_project/Object/Delete.interface.yaml
@@ -6,3 +6,5 @@
Delete the object implementing Delete.
errors:
- xyz.openbmc_project.Common.Error.InternalFailure
+ - xyz.openbmc_project.Common.Error.NotAllowed
+ - xyz.openbmc_project.Common.Error.Unavailable