blob: eec2ce0f431e92c3c5908795140cedbbc7349775 [file] [log] [blame]
Andrew Geisslerd3459662017-03-16 14:15:31 -05001description: >
2 Implement to provide host interface support
3
4methods:
5 - name: Execute
6 description: >
7 Execute the requested command by the caller. This command will be
8 processed in first in first out order. See the Command enum
9 description below for details on all supported commands.
10 parameters:
11 - name: command
12 type: enum[self.Command]
13 description: Requested command to execute against the host
14 errors:
15 - self.Error.CommandNotSupported
16
17signals:
18 - name: CommandComplete
19 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050020 Signal indicating that a Command has completed
Andrew Geisslerd3459662017-03-16 14:15:31 -050021 properties:
Patrick Williams8da396c2022-03-14 14:21:02 -050022 - name: command
23 type: enum[self.Command]
24 description: Executed command
25 - name: result
26 type: enum[self.Result]
27 description: Result of the command execution
Andrew Geisslerd3459662017-03-16 14:15:31 -050028
29enumerations:
30 - name: Command
31 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050032 The command to execute against the host
Andrew Geisslerd3459662017-03-16 14:15:31 -050033 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050034 - name: SoftOff
35 description: >
36 Host firmware should do a clean shutdown and request a chassis power
37 off to the BMC when complete. This command will return once the
38 command has been sent to the host.
39 - name: Heartbeat
40 description: >
41 Note: This is in the process of being deprecated in favor of the
42 new xyz.openbmc_project.Condition.HostFirmware interface.
43 Used to determine if the host is running and functional. This
44 command will return once the command has been sent to the host.
45 The response to the attention and the reading of the command
46 provides the needed functional information.
Andrew Geisslerd3459662017-03-16 14:15:31 -050047
48 - name: Result
49 description: >
Patrick Williams8da396c2022-03-14 14:21:02 -050050 The result of the command execution
Andrew Geisslerd3459662017-03-16 14:15:31 -050051 values:
Patrick Williams8da396c2022-03-14 14:21:02 -050052 - name: Success
53 description: Command execution was a success
54 - name: Failure
55 description: Command execution was a failure