Skip to content

Default behaviour with device selection #293

@AtomicFS

Description

@AtomicFS

Is your feature request related to a problem? Please describe.
So, when I run:

dutctl -s fwci-fti-tester.sec.9e.network:2024

It just errors and returns help:

2026/03/03 16:24:44 invalid command line

SYNOPSIS:
	dutctl [options] list
	dutctl [options] <device>
	dutctl [options] <device> <command> [args...]
	dutctl [options] <device> <command> help
	dutctl version

OPTIONS:
  -f string
    	Output format, text|json|yaml|oneline, default is text
  -no-color
    	Disable colored output
  -s string
    	Address and port of the dutagent to connect to in the format: address:port (default "localhost:1024")
  -v	Verbose output

Why not run list by default?

Also, when I do:

dutctl -s fwci-fti-tester.sec.9e.network:2024 power

I get:

2026/03/03 16:24:40 invalid_argument: device "power": no such device

Which I guess makes sense, but I am certain that we are going to run only one "device config" per dutagent. most of the time. Maybe it should just default to the only available device (if there is only one).

Describe the solution you'd like
N/A

Describe alternatives you've considered
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions