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

Merged
merged 4 commits into from
Dec 29, 2024
Merged

Brctl #866

merged 4 commits into from
Dec 29, 2024

Conversation

steelman
Copy link
Contributor

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

@steelman steelman force-pushed the brctl branch 3 times, most recently from daed251 to 7e42273 Compare January 11, 2023 18:57
@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.
@steelman steelman force-pushed the brctl branch 2 times, most recently from 9d87e5b to 7b83351 Compare November 29, 2024 11:10
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/

@steelman steelman force-pushed the brctl branch 3 times, most recently from 5cb1665 to 7e8441f Compare November 29, 2024 12:27
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.
Copy link
Owner

@scop scop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Unfortunately this just missed the 2.16.0 release as it had fallen too far in the list of open PR's for me to notice. Will be included in the next one.

@scop scop merged commit 3c2cac0 into scop:main Dec 29, 2024
7 checks passed
@akinomyoga
Copy link
Collaborator

Sorry, I had a "pending" review that I forgot to submit. I added it in #1296.

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