Skip to content

feat: bridge handling - #630

Merged
cachebag merged 5 commits into
freedesktop-rs:masterfrom
agustux:feat/bridge-handling
Nov 21, 2026
Merged

cachebag merged 5 commits into
freedesktop-rs:masterfrom
agustux:feat/bridge-handling

Conversation

@agustux

@agustux agustux commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #120

Adds BridgeBuilder and BridgePortBuilder for bridge profiles and their port profiles, saved with add_connection. Device type 13 now maps to DeviceType::Bridge instead of Other(13), and new Device::is_bridge(). Includes docs, an example, and an integration test.

Questions:

  • For the sake of consistency, should I make an issue for moving to a VlanBuilder, matching BridgeBuilder? VLAN still uses VlanConfig and build_vlan_connection
  • To avoid redundancy, can I make an issue to make a macro_rules! in src/api/builders/mod.rs to generate the repeated uuid / options / autoconnect* methods for the Wi-Fi, WireGuard, and bridge builders?
  • Also I forgot to update the PR number for the OpenVPN changes from #627, can either of us make a quick update for that in the changelog?

@agustux
agustux requested a deployment to self-hosted-pr-integration November 19, 2026 14:11 — with GitHub Actions Waiting
@agustux
agustux deployed to self-hosted-pr-integration November 19, 2026 14:13 — with GitHub Actions Active
@cachebag cachebag added feature New feature or request builders Connection builder API and validation api-surface Public API design, re-exports, and semver-relevant changes wired Wired (Ethernet) connection management labels Nov 20, 2026
@cachebag

cachebag commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

@agustux

Can they open an issue for a macro_rules! that generates the repeated uuid/options/autoconnect* methods across the Wi-Fi, WireGuard and bridge builders?

Yes this would be great.

Also I forgot to update the PR number for the OpenVPN changes from #627, can either of us make a quick update for that in the changelog?

I already did this in d0c3e7b

Comment thread src/api/builders/bridge_builder.rs Resolved
Comment thread README.md Resolved

@agustux agustux left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Made the issue at #631

Thanks

@cachebag cachebag left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@cachebag
cachebag merged commit 3e60914 into freedesktop-rs:master Nov 21, 2026
9 checks passed

This branch was successfully deployed

1 active deployment
self-hosted-pr-integration — 2227cd22 Deployed Nov 20, 2026 by agustux via NetworkManager Integration #1342
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-surface Public API design, re-exports, and semver-relevant changes builders Connection builder API and validation feature New feature or request wired Wired (Ethernet) connection management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Bridge

2 participants