From d7d237bc738bd25e88263069cf6f1fc0078dd76c Mon Sep 17 00:00:00 2001 From: Josh King Date: Thu, 24 Nov 2016 14:54:35 -0600 Subject: Defined properties in the bmc state management Created the yaml file that contained the necessary properties needed for bmc state management. This is needed so we can have access to the different states of the bmc for whenever we decide to transition to a desired state, or would like to reboot, etc. Change-Id: Ife02f7b324262eccb990d29ed872cf4137857e14 Signed-off-by: Josh King --- xyz/openbmc_project/State/BMC.interface.yaml | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 xyz/openbmc_project/State/BMC.interface.yaml diff --git a/xyz/openbmc_project/State/BMC.interface.yaml b/xyz/openbmc_project/State/BMC.interface.yaml new file mode 100644 index 0000000..45dbc48 --- /dev/null +++ b/xyz/openbmc_project/State/BMC.interface.yaml @@ -0,0 +1,40 @@ +description: > + Implementation of BMC state management. When rebooting we are in + transition. When Ready all services required are running + successfully. When we are Not Ready this implies not all services + have started that are required to be. + +properties: + - name: RequestedBMCTransition + type: enum[self.Transition] + default: 'None' + description: > + The desired BMC transition + + - name: CurrentBMCState + type: enum[self.BMCState] + description: > + The current state of the BMC and is a read-only property. + +enumerations: + - name: Transition + description: > + The desired transition for the BMC firmware + values: + - name: 'Reboot' + description: > + BMC system should be rebooted + - name: 'None' + description: > + No transition is in progress + + - name: BMCState + description: > + The current state of the BMC firmware + values: + - name: 'Ready' + description: > + Ready implies all services started and are running successfully + - name: 'NotReady' + description: > + Not ready implies not all services have started or are not running successfully -- cgit v1.2.1