chiark / gitweb /
machinectl: split OS field in two; print ip addresses (#4058)
authorSeraphime Kirkovski <kirkseraph@gmail.com>
Wed, 31 Aug 2016 18:06:57 +0000 (21:06 +0300)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:53 +0000 (08:50 +0200)
commit17aeba0786394b9c1b29d56061ee8ed6fbf830eb
tree1631687c4d76edcebc5685109b367f0041ee01b4
parentf8b903a5947589b91ccfbc5a87ee3f8c5726c354
machinectl: split OS field in two; print ip addresses (#4058)

This splits the OS field in two : one for the distribution name
and one for the the version id.
Dashes are written for missing fields.
This also prints ip addresses of known machines. The `--max-addresses`
option specifies how much ip addresses we want to see. The default is 1.
When more than one address is written for a machine, a `,` follows it.
If there are more ips than `--max-addresses`, `...` follows the last
address.
src/basic/string-util.h