]>
git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
orch/cephadm: implement `ceph orch hardware` command
This adds a first implementation of the `ceph orch hardware` CLI.
Usage:
```
ceph orch hardware status [<hostname>] [--category <value>]
```
Omitting the `[<hostname>]` argument will generate a report for all hosts.
The default for argument `[--category]` is `summary`.
Example with `--category` :
```
+------------+-------------+-------+--------+---------+
| HOST | NAME | SPEED | STATUS | STATE |
+------------+-------------+-------+--------+---------+
| ceph-00001 | eno8303 | 0 | OK | Enabled |
| ceph-00001 | eno8403 | 0 | OK | Enabled |
| ceph-00001 | eno12399np0 | 10000 | OK | Enabled |
| ceph-00001 | eno12409np1 | 10000 | OK | Enabled |
| ceph-00001 | bond0 | 10000 | OK | Enabled |
+------------+-------------+-------+--------+---------+
```
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>