blob: 2ff27d5a769dd31ebde3dbf4c457b37b9898586c [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: >
Patrick Williamsa1347412022-12-06 10:56:22 -060036 Host firmware should do a clean shutdown and request a chassis
37 power off to the BMC when complete. This command will return
38 once the command has been sent to the host.
Patrick Williams8da396c2022-03-14 14:21:02 -050039 - name: Heartbeat
40 description: >
41 Note: This is in the process of being deprecated in favor of the
Patrick Williamsa1347412022-12-06 10:56:22 -060042 new xyz.openbmc_project.Condition.HostFirmware interface. Used
43 to determine if the host is running and functional. This
Patrick Williams8da396c2022-03-14 14:21:02 -050044 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