Commit eb92044
committed
RBMC: Add failover support to rbmctool
Add --failover and --force-failover options to rbmctool. It calls the
StartFailover method on the Failover interface on
/xyz/openbmc_project/state/bmc0.
The new help text:
```
[Option Group: Starting failovers]
Options:
-f,--failover Excludes: --force-failover
Start a failover
-r,--force-failover Excludes: --failover
Start a forced failover. Only for emergencies.
```
Tested:
Note, failovers aren't implemented yet and always return an error.
```
$ ./rbmctool --failover
<6> Initiating failover
Error: Failover cannot be started now (see journal for details)
$ ./rbmctool --force-failover
<6> Initiating forced failover
Error: Failover cannot be started now (see journal for details)
```
Change-Id: I91f62ba40d7ab133d4ba79147abd7bf613c8a9cf
Signed-off-by: Matt Spinler <[email protected]>1 parent 40c9f06 commit eb92044
1 file changed
+63
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
298 | 346 | | |
299 | 347 | | |
300 | 348 | | |
| |||
303 | 351 | | |
304 | 352 | | |
305 | 353 | | |
| 354 | + | |
| 355 | + | |
306 | 356 | | |
307 | 357 | | |
308 | 358 | | |
| |||
326 | 376 | | |
327 | 377 | | |
328 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
329 | 387 | | |
330 | 388 | | |
331 | 389 | | |
| |||
346 | 404 | | |
347 | 405 | | |
348 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
349 | 411 | | |
350 | 412 | | |
351 | 413 | | |
| |||
0 commit comments