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

[Feature Request] Wildcard / Regexp support for LAN interface name #724

Open
mnixry opened this issue Dec 30, 2024 · 1 comment
Open

[Feature Request] Wildcard / Regexp support for LAN interface name #724

mnixry opened this issue Dec 30, 2024 · 1 comment

Comments

@mnixry
Copy link
Contributor

mnixry commented Dec 30, 2024

Greetings

No response

Feature Request

It would be nice to add support for wildcard interface names for LAN networks.

For instance, using br-* should match all local network interfaces that start with br-.

This feature could potentially be implemented by modifying the following code:

case update := <-ch:
if update.Header.Type == rtmType {
ifname := update.Link.Attrs().Name
if ifname == _ifname {
cb()
close(done)
return
}
}

Use Cases

Virtualization and containerization platforms, such as Docker or Proxmox VE, often create network bridges dynamically. These bridges usually share common prefixes.

For example, Docker creates networks with the br-* prefix.

Potential Benefits

Manually adding network interfaces created programmatically is inconvenient, especially when they can be created or removed at any time.

This functionality would provide seamless support for Docker Compose without the need to manually add network bridge interface.

@dae-prow
Copy link
Contributor

dae-prow bot commented Dec 30, 2024

Thanks for opening this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant