state: add errors for transition request
Sometimes, BMC/Chassis/Host should reject transition request to protect
the system (e.g: While BMC is flashing Host/BMC/CPLD ...).
In that case, BMC/Chassis/Host should return an error to inform this
transition request is unavailable at this time.
Change-Id: Ief36089266d8439d8e8bd5bcd68c1a7647120595
Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
diff --git a/yaml/xyz/openbmc_project/State/BMC.interface.yaml b/yaml/xyz/openbmc_project/State/BMC.interface.yaml
index d25e573..ff1a228 100644
--- a/yaml/xyz/openbmc_project/State/BMC.interface.yaml
+++ b/yaml/xyz/openbmc_project/State/BMC.interface.yaml
@@ -10,6 +10,8 @@
default: "None"
description: >
The desired BMC transition
+ errors:
+ - xyz.openbmc_project.Common.Error.Unavailable
- name: CurrentBMCState
type: enum[self.BMCState]