Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tink-cli hardware get returns 1 row per interface per hardware #534

Closed
splaspood opened this issue Sep 2, 2021 · 3 comments
Closed

tink-cli hardware get returns 1 row per interface per hardware #534

splaspood opened this issue Sep 2, 2021 · 3 comments
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.

Comments

@splaspood
Copy link
Contributor

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.

@mmlb
Copy link
Contributor

mmlb commented Sep 2, 2021

This does make a lot of sense, the cli call was for hardware not nics or network info so the output should be hardware (id) centric.

@tstromberg tstromberg added 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. labels Sep 2, 2021
@splaspood
Copy link
Contributor Author

// TODO(gianarb): I think we should
not the first to notice this issue :)

@jacobweinstock
Copy link
Member

closed by #654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

4 participants