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

Brctl #866

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Brctl #866

wants to merge 4 commits into from

Conversation

steelman
Copy link
Contributor

Alternatively addbr could also get completion of available bridges to enable avoiding clashes.

@steelman
Copy link
Contributor Author

Why? With brctl show $1 (w/o quotes) I (rightfully so) got an error massage about possible splitting.

completions/brctl Outdated Show resolved Hide resolved
completions/brctl Outdated Show resolved Hide resolved
completions/brctl Outdated Show resolved Hide resolved
Do not turn the option to use file names as possible completion for brctl
as the command does not deal with files whatsoever.
When adding a network interface to a bridge we most probably want to
use one that hasn't been configured yet.
completions/brctl Outdated Show resolved Hide resolved
completions/brctl Outdated Show resolved Hide resolved
@akinomyoga
Copy link
Collaborator

akinomyoga commented Nov 29, 2024

feat(brctl): for delif commnd offer only bridged interfaces

It's not a big deal, but I think there is a typo in the commit message. s/commnd/command/

When completing a delif command offer only interfaces that are part of
the selected bridge.
The show subcommand accepts a bridge name as a paramenter so let's
offer completion.  On the other hand addbr creates new interface and
requires a name that doesn't exist yet.

Longer awk condition prevents offering interfaces that are parts of
bridges. They are all displayed in the last column but with all other
columns being blang on the second and following lines of each bridge
the last column is also the first.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants