Commit b6f9f1e
committed
WIP: Simplify dbus service name creation
Non-indexed dbus service names for instance based daemons got
deprecated. It is expected, that xyz.openbmc_project.State.Host0 and
xyz.openbmc_project.State.Chassis0 exist on every single-host platform.
Remove the multi-host check, and directly return an index based dbus
service name.
Tested: Manually checking if dbus service is picking up the requested
ResetType / state transition interface.
Before POST:
```
$ busctl introspect xyz.openbmc_project.State.Host0 \
/xyz/openbmc_project/state/host0
xyz.openbmc_project.State.Host interface - -
...
.RequestedHostTransition property s "xyz.openbmc_project.State.Host.Transition.Off"
...
```
POST request:
```
$ curl -v -k POST
'https://'"${BMC}"':'"${BMC_WEBPORT}"'/redfish/v1/Systems/system/Actions/ComputerSystem.Reset' \
-H 'X-Auth-Token: '"$BMCWEB_SESSION_TOKEN"'' \
-H "Content-Type: application/json" -d {"ResetType":"On"}
```
After POST:
```
$ busctl introspect xyz.openbmc_project.State.Host0 \
/xyz/openbmc_project/state/host0
.RequestedHostTransition property s "xyz.openbmc_project.State.Host.Transition.On"
```
Change-Id: I5b2c37f9d6a622af0c056504e1bb6dd839fd7d14
Signed-off-by: Oliver Brewka <[email protected]>1 parent 447d3ad commit b6f9f1e
1 file changed
+3
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
| 229 | + | |
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
| |||
246 | 240 | | |
247 | 241 | | |
248 | 242 | | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 243 | + | |
| 244 | + | |
256 | 245 | | |
257 | 246 | | |
258 | 247 | | |
| |||
0 commit comments