Skip to content

link: add HSR interface support#168

Merged
cathay4t merged 1 commit into
rust-netlink:mainfrom
cathay4t:main
Jun 4, 2026
Merged

link: add HSR interface support#168
cathay4t merged 1 commit into
rust-netlink:mainfrom
cathay4t:main

Conversation

@cathay4t
Copy link
Copy Markdown
Member

@cathay4t cathay4t commented Jun 4, 2026

Introduced LinkHsr builder for creating HSR (High-availability Seamless
Redundancy) interfaces.

Example:

let nl_msg = LinkHsr::new("hsr0")
    .port1(3)
    .port2(4)
    .build();

Supported options: port1, port2, interlink, supervision, version,
protocol.

Introduced `LinkHsr` builder for creating HSR (High-availability Seamless
Redundancy) interfaces.

Example:

```rust
let nl_msg = LinkHsr::new("hsr0")
    .port1(3)
    .port2(4)
    .build();
```

Supported options: port1, port2, interlink, supervision, version,
protocol.

Signed-off-by: Gris Ge <[email protected]>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces support for High-availability Seamless Redundancy (HSR) interfaces by adding the LinkHsr struct and its associated builder implementation LinkMessageBuilder<LinkHsr> in a new hsr module, and exporting it through src/lib.rs and src/link/mod.rs. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@cathay4t cathay4t merged commit f1fb864 into rust-netlink:main Jun 4, 2026
6 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.

1 participant