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

List ports by device ID #478

Open
ctreatma opened this issue Aug 6, 2024 · 1 comment
Open

List ports by device ID #478

ctreatma opened this issue Aug 6, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ctreatma
Copy link
Contributor

ctreatma commented Aug 6, 2024

What problem are you facing?

I have provisioned a device and I want to use metal-cli to view information about the device's ports. The device's port IDs are not included in the output of metal device get -i <device_id>, and I have to know the port ID for all of the metal port <subcommand> subcommands.

This means that, if I only know the device ID, I have to run metal device get -i <device_id> -o json in order to get port information. If I'm not already planning on doing some post-processing on the JSON output, it's annoying to be forced to switch to JSON output and parse out the ports.

How could the Equinix Metal CLI help solve this problem?

If metal ports get gained a -d <device_id> parameter (or similar) I could use the existing metal ports get command to find information about the ports belonging to a particular device.

@ctreatma ctreatma added the enhancement New feature or request label Aug 6, 2024
@displague
Copy link
Member

displague commented Aug 26, 2024

Related #215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants