DP-1.16.3: MPLS swap action code fix#5344
DP-1.16.3: MPLS swap action code fix#5344karthikeya-remilla wants to merge 10 commits intoopenconfig:mainfrom
Conversation
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 necessary MPLS-specific plumbing to validate ingress classification and rewrite functionality for MPLS traffic. It enhances the existing QoS test suite by adding MPLS classifier support and updates the flow testing logic to ensure correct DUT interface interaction, specifically addressing requirements for Cisco platforms through new metadata deviations and CLI configuration plugins. 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 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 counter productive. 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
|
Pull Request Functional Test Report for #5344 / 74acc10Virtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request introduces MPLS EXP-based traffic classification and remarking for QoS tests, adding support for Cisco devices through new deviations and CLI-based static MPLS configurations. Key updates include refactoring rewriteMplsSwapAction into a table-driven test and modifying ConfigureQoS to handle MPLS traffic classes. Review feedback recommends using t.Skip() instead of commenting out test cases, ensuring interface-level configurations are cleaned up to maintain test isolation, and refining the logic to prevent the creation of empty remark containers. Additionally, the reviewer suggested maintaining CLI string consistency and addressing a version mismatch in the generated protobuf code.
|
Team, in the original code I see that all classifier terms are configured that could match all EXP values per README, but only 1 value of EXP is being sent for verification in traffic flows. In my diff, 2 values are being sent. Ideally, to fully satisfy the intent for MPLS classification+rewrite, shouldn't we send traffic for: 0,1,2,3,4,5,6,7 and expect remark outputs: 0,1,2,3,4,4,6,6 to exercise all of the classes? |
Code changes to add the missing MPLS-specific plumbing needed to validate ingress classification and rewrite for MPLS traffic.
Diff: