Comment 5 for bug 1658630

Revision history for this message
Dennis Dmitriev (ddmitriev) wrote :

The option should be extended to use YAML as a default output format:

* default behaviour:
dos.py slave-ip-list tcpcloud-mk22
admin-pool01:
  cfg01:172.16.10.100
  ctl01:172.16.10.101
  ctl02:172.16.10.102
  ...
private-pool01:
  cfg01:192.168.10.100
  ctl01:192.168.10.101
  ctl02:192.168.10.102
  ...

* filtered by specified address pool:
dos.py slave-ip-list tcpcloud-mk22 --address-pool=admin-pool01
cfg01:172.16.10.100
ctl01:172.16.10.101
ctl02:172.16.10.102
...

* inventory mode:
dos.py slave-ip-list tcpcloud-mk22 --address-pool=admin-pool01 --ip-only
- 172.16.10.100
- 172.16.10.101
- 172.16.10.102
...

* inventory mode (single line for easy parsing from shell):
dos.py slave-ip-list tcpcloud-mk22 --address-pool=admin-pool01 --ip-only-plain
172.16.10.100 172.16.10.101 172.16.10.102 ...