-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add support for static & lacp link aggragetes #873
Open
troglobit
wants to merge
25
commits into
main
Choose a base branch
from
lag
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
troglobit
force-pushed
the
lag
branch
2 times, most recently
from
December 16, 2024 14:20
bbec2cb
to
2a39a38
Compare
wkz
requested changes
Dec 19, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Superb! 🔥
troglobit
force-pushed
the
lag
branch
2 times, most recently
from
December 19, 2024 17:59
179136e
to
944a9f3
Compare
troglobit
force-pushed
the
lag
branch
5 times, most recently
from
January 12, 2025 21:29
56c3bce
to
8d67dc4
Compare
jovatn
approved these changes
Jan 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I primarily reviewed documentation. Impressive!
troglobit
force-pushed
the
lag
branch
2 times, most recently
from
January 16, 2025 12:13
92c4c41
to
96ee219
Compare
Latest libite-dev in Ubuntu does not have the latest libite features needed by confd et al. Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Simplify name, follow new srop tool naming convention. Signed-off-by: Joachim Wiberg <[email protected]>
The speed/duplex of a virtio interface is not eenforced in any way. The driver initializes them to unknown/unkown: https://github.com/torvalds/linux/blob/dccbe2047a5b0859de24bf463dae9eeea8e01c1e/drivers/net/virtio_net.c#L5375-L5381 It is however possible to set them since there are kernel subsystems that rely on them, e.g., miimon in the bond driver, which in turn is required for use with the 802.3ad (lacp) mode. If we do not initialize speed/duplex the miimon will complain in the log on virtual test systems every second: Dec 13 22:34:08 laggy kernel: lag0: (slave e1): failed to get link speed/duplex Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Do not log error if no tarballs exist. Signed-off-by: Joachim Wiberg <[email protected]>
- Avoid unnecessary error messages in syslog when build w/o containers - Simplify log messages slightly Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Some callbacks may run twice, e.g., lag_gen_ports(). Check if the link already exists, and is the same, then we can exit silently. However, in case the link exists and does *not* point to the same target, we log an error with current target for the post mortem. Signed-off-by: Joachim Wiberg <[email protected]>
When reading lag status, like LACP actor system prio, port key, etc., we need CAP_NET_ADMIN. See net/bonding/bond_netlink.c Signed-off-by: Joachim Wiberg <[email protected]>
Avoid setting mv88e6xxx ports in disabled state, because that prevents protocols that do link qualification to pass frames, instead set ports in blocking. This allows, e.g., LACPDUs to pass in/out link aggregate member ports when the lag itself is set as a bridge port. Signed-off-by: Joachim Wiberg <[email protected]>
Example use: @infamy.test_argument("--mode", help="one of 'static' or 'lacp'") class TestArgs(infamy.ArgumentParser): pass Signed-off-by: Joachim Wiberg <[email protected]>
When first starting up the YANG models are downloaded. Initially all were printed on the test console, so this was later changed to become a sort of progress output. However, that broke tap output, causing a missing leading '#' for the final "YANG models downloaded." message. Thist patch drops the output entirely from the netconf transport, it was never added to the restconf transport. Signed-off-by: Joachim Wiberg <[email protected]>
This commit adds two SVGs for previewing the virtual test topologies. quad: fix a lot of copy-paste mistakes, rename nodes and ports to their correct names. Replace shell comments with C++ style comments, not all tools, e.g., dotty, support shell comments. The neato absolute positioning has also been fixed to make it possible to see all the edges, to facilitate this the used ports have been swapped around a abit. Colors are used according to the schema agreed on for tests. Finally, a second link for lag tests have been added between dut2 and dut3. dual: add coloring similar to quad. Signed-off-by: Joachim Wiberg <[email protected]>
Follow-up to e4535aa, allowing tests to be even simpler. Signed-off-by: Joachim Wiberg <[email protected]>
Unclear if the libyang merge operation actually does it's job of merging all the data properly in the restconf backend. Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Verify connectivity from host to the second DUT via the first, over a link aggregate. The lag starts in static mode and then changes to an LACP aggregate. This verifies not just basic aggregate functionality, but also changing mode, which is quite tricky to get right. Signed-off-by: Joachim Wiberg <[email protected]>
Verify connectivity from host to the second DUT via the first, over a link aggregate. Both aggregate member links are connected to a TPMR link breaker to hide link down from the DUTs. Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Signed-off-by: Joachim Wiberg <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Add support for link aggregation, both static (balance-xor) and LACP modes supported using the Linux bond driver.
See the docs here:
Checklist
Tick relevant boxes, this PR is-a or has-a: