tink-cli hardware get returns 1 row per interface per hardware #534
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
When you issue a tink-cli hardware get the output consists of a table where there is one row per interface per piece of hardware. So if you have a piece of hardware with 3 network interfaces the resulting table will contain 3 rows for that single piece of hardware. This does not seem to meet with the user's expectations of output from this command.
Expected Behaviour
'tink-cli hardware get' should return a list of all hardware within tink-server, one row per piece of hardware.
Current Behaviour
'tink-cli hardware get' returns 1 row for each interface of each piece of hardware: eg:
+--------------------------------------+-------------------+----------------+----------+
| ID | MAC ADDRESS | IP ADDRESS | HOSTNAME |
+--------------------------------------+-------------------+----------------+----------+
| 35913e1c-3c24-4046-bbbb-db1122d495dd | e4:43:4b:4b:5e:e0 | 172.16.4.237 | |
| 35913e1c-3c24-4046-bbbb-db1122d495dd | e4:43:4b:4b:5e:e1 | | |
| 35913e1c-3c24-4046-bbbb-db1122d495dd | e4:43:4b:4b:5e:e2 | | |
| 35913e1c-3c24-4046-bbbb-db1122d495dd | e4:43:4b:4b:5e:e3 | | |
| 35913e1c-3c24-4046-bbbb-db1122d495dd | 4c:d9:8f:23:2c:b0 | 10.229.12.22 | |
Possible Solution
hardware get should return a single row per piece of hardware. Since the default columns currently includes 'mac address', and 'ip address' the data returned would have to change. Maybe 'mac address(es)' and 'ip address(es)'.
Steps to Reproduce (for bugs)
Run 'tink-cli hardware get'
Context
While tink-cli hardware get is still fully usable in this state the output, I feel, is inconsistent with user expectations and will lead to confusion when attempting to use the CLI to troubleshoot.
The text was updated successfully, but these errors were encountered: