gRIBI scale: compact flows to reduce OTG load#5597
Conversation
640a4ff to
bc3d074
Compare
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request implements a flow compaction mechanism for gRIBI scale testing to alleviate load on the Open Traffic Generator (OTG). By consolidating specific flow groups, the total number of flows is reduced, which helps maintain performance and stay within hardware or software limitations during high-scale testing scenarios. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces an option to compact OTG flows for decap, transit, and repaired scenarios to reduce the overall flow count, refactoring the flow builders to use a new helper function to minimize duplication. The reviewer feedback highlights a critical issue where the flow validation helper does not correctly handle the expected DSCP values when flows are compacted. Additionally, the reviewer suggests optimizing slice allocation in the new DSCP helper and warns that changing the signature of the shared validation function could break other callers in the repository.
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.
bc3d074 to
09b1fe9
Compare
09b1fe9 to
2f74db9
Compare
Each OTG port has a maximum limit of how many flow-groups it can accommodate. If that limit is reached the configuration push fails.
The (big) number of flows is directly proportional with the number of encap VRFs, however decap, transit and repaired traffic is encap VRF agnostic so each category can have only 1 flow.