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

bridge port: Introduce BridgeFlag, BridgeMode and BridgeVlanTunnelInfo #132

Merged
merged 1 commit into from
Sep 10, 2024

Conversation

cathay4t
Copy link
Member

@cathay4t cathay4t commented Sep 9, 2024

  • Change AfSpecBridge::Flags(u16) to AfSpecBridge::Flags(BridgeFlag)
  • Add AfSpecBridge::Mode(BridgeMode) for IFLA_BRIDGE_MODE
  • Add AfSpecBridge::VlanTunnelInfo(Vec<BridgeVlanTunnelInfo>) for
    IFLA_BRIDGE_VLAN_TUNNEL_INFO

Unit test cases included.

Copy link
Contributor

@bengal bengal left a comment

Choose a reason for hiding this comment

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

LGTM

src/link/af_spec/bridge.rs Outdated Show resolved Hide resolved
* Change `AfSpecBridge::Flags(u16)` to `AfSpecBridge::Flags(BridgeFlag)`
* Add `AfSpecBridge::Mode(BridgeMode)` for `IFLA_BRIDGE_MODE`
* Add `AfSpecBridge::VlanTunnelInfo(Vec<BridgeVlanTunnelInfo>)` for
  `IFLA_BRIDGE_VLAN_TUNNEL_INFO`

Unit test cases included.

Signed-off-by: Gris Ge <[email protected]>
@cathay4t cathay4t merged commit 40d090b into rust-netlink:main Sep 10, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants