Skip to content

change re-encap weights#5457

Open
dracazacula wants to merge 1 commit into
mainfrom
do_not_merge_frr2_weights
Open

change re-encap weights#5457
dracazacula wants to merge 1 commit into
mainfrom
do_not_merge_frr2_weights

Conversation

@dracazacula
Copy link
Copy Markdown
Contributor

No description provided.

@dracazacula dracazacula requested a review from a team as a code owner May 13, 2026 09:34
@dracazacula
Copy link
Copy Markdown
Contributor Author

/fptest virtual

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 updates the configuration parameters for a specific GRIB-I test case to adjust traffic distribution weights and introduces diagnostic logging to capture device version information during test execution.

Highlights

  • Weight Adjustment: Updated the next-hop weight for ID 1003 in the GRIB-I NextHopGroupEntry from 1 to 3.
  • Diagnostic Logging: Added a 'show ver' command execution and logging step to the TestEncapFrr function to assist with environment debugging.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@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 updates a gRIBI next-hop weight and adds a manual CLI command to log the device version. Feedback was provided regarding the use of vendor-specific CLI commands; it is recommended to use OpenConfig paths for retrieving the software version to ensure the test remains vendor-neutral and adheres to the repository's style guidelines.

Comment on lines +1029 to +1034
if res, err := dut.RawAPIs().CLI(t).RunCommand(ctx, "show ver"); err == nil {
t.Logf("Output of 'show ver':\n%s", res.Output())
} else {
t.Logf("Failed to run 'show ver': %v", err)
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The addition of the show ver CLI command is vendor-specific and unrelated to the stated purpose of this PR. While vendor-specific logic can be acceptable for non-OpenConfig paths when no cleaner validation method is available, feature profile tests should remain vendor-neutral by using OpenConfig paths (e.g., /system/state/software-version) whenever possible. Furthermore, Ondatra typically logs device information at the start of the test, making this manual check redundant. If you choose to replace this logic, ensure the new approach is verified across all supported vendors to maintain cross-platform compatibility.

References
  1. Use deviations to allow alternate OC paths or CLI commands to achieve the same operational intent. Do not use them to skip validation or change the intent of the test. (link)
  2. When dealing with non-OpenConfig paths, it may be acceptable to use brittle, vendor-specific logic if no cleaner validation method is available.
  3. When removing logic that handles vendor-specific naming conventions (such as stripping channelization from interface names), ensure the change is verified across all supported vendors to maintain cross-platform compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants