Skip to content

PF-1.22: fixes for ipv4_guev1_decap_and_hashing_test#5441

Open
davinsingh-arista wants to merge 1 commit into
openconfig:mainfrom
davinsingh-arista:guev4_decap_test_fix
Open

PF-1.22: fixes for ipv4_guev1_decap_and_hashing_test#5441
davinsingh-arista wants to merge 1 commit into
openconfig:mainfrom
davinsingh-arista:guev4_decap_test_fix

Conversation

@davinsingh-arista
Copy link
Copy Markdown

Fix 1:
Today, the test successfully configures BGP and applies a routing policy ALLOW, which should allow all received routes. However, the test never defines this routing policy ALLOW, so all received routes are rejected. (Ultimately, this causes the inner packet to be dropped since there is no route for it). The fix is adding a call to ConfigureCommonBGPPolicies and configuring the ALLOW policy.

Fix 2:
Flow-9 and Flow-10 were failing because they happened to be load balancing with a distribution of 200,000/800,000. This distribution depends on the random load balancing polynomial on the device, and since today the test only sends packets with 10 UDP source ports, there is not enough entropy. It would be better to increase the number of UDP src ports to even the distribution and get the test to pass more consistently.

I've attached the log from a passing test run:
pf-1_22.txt

Fix 1:
Today, the test successfully configures BGP and applies a routing policy ALLOW, which should allow all received routes. However, the test never defines this routing policy ALLOW, so all received routes are rejected. (Ultimately, this causes the inner packet to be dropped since there is no route for it)

Fix 2:
Flow-9 and Flow-10 were failing because they happened to be load balancing with a distribution of 200,000/800,000. This distribution depends on the random load balancing polynomial on the device, but it would still be better to increase the number of UDP src ports to increase the entropy and get the test to pass more consistently.
@davinsingh-arista davinsingh-arista requested a review from a team as a code owner May 11, 2026 16:14
@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 addresses stability issues in the ipv4_guev1_decap_and_hashing_test. It ensures that necessary routing policies are defined before BGP reference and increases the entropy of generated traffic flows to prevent intermittent failures caused by uneven load balancing distribution.

Highlights

  • Routing Policy Configuration: Added the missing definition of the ALLOW routing policy in the DUT configuration to ensure BGP routes are correctly accepted.
  • Load Balancing Entropy: Increased the number of UDP source ports from 10 to 1000 in flow configurations to improve load balancing distribution and test reliability.
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.

@google-cla
Copy link
Copy Markdown

google-cla Bot commented May 11, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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 enhances load balancing entropy in the IPv4 GUEv1 decapsulation tests by increasing the UDP source port increment count and updating the base port constant. It also ensures that the routing policy is defined and applied before BGP references it to prevent route rejection. I have no feedback to provide.

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.

3 participants