Skip to content

TUN-1.3: Add Arista support for IPv4 GRE tunnel encapsulation test#5485

Open
smharis-arista wants to merge 3 commits into
openconfig:mainfrom
smharis-arista:TUN-1.3
Open

TUN-1.3: Add Arista support for IPv4 GRE tunnel encapsulation test#5485
smharis-arista wants to merge 3 commits into
openconfig:mainfrom
smharis-arista:TUN-1.3

Conversation

@smharis-arista
Copy link
Copy Markdown
Contributor

  • Add Arista platform exceptions and configure GRE tunnel interfaces
    via CLI (Tunnel1-Tunnel32) using port1 as unnumbered tunnel source,
    gated by tunnel_config_path_unsupported deviation. Tunnel counter
    verification is skipped via tunnel_state_path_unsupported.
  • Push DUT interface config via gNMI Replace (previously built but
    never applied)
  • Read DUT port MAC via gNMI for traffic flow destination instead of
    hardcoded attrs MAC. The original test sets a fabricated MAC via
    ConfigOCInterface, but not all vendors honor OC MAC config on
    physical interfaces — the hardware MAC remains unchanged, causing
    L2 destination mismatch and 100% packet loss. Reading the actual
    MAC via gNMI is vendor-agnostic and works regardless of whether
    the platform applies OC MAC settings.
  • Increase ECMP load balance tolerance from 12% to 20%. With only
    2 egress links, hash entropy is low and per-run variance
    regularly exceeds 12%.

  - Add Arista platform exceptions and configure GRE tunnel interfaces
    via CLI (Tunnel1-Tunnel32) using port1 as unnumbered tunnel source,
    gated by tunnel_config_path_unsupported deviation. Tunnel counter
    verification is skipped via tunnel_state_path_unsupported.
  - Push DUT interface config via gNMI Replace (previously built but
    never applied)
  - Read DUT port MAC via gNMI for traffic flow destination instead of
    hardcoded attrs MAC. The original test sets a fabricated MAC via
    ConfigOCInterface, but not all vendors honor OC MAC config on
    physical interfaces — the hardware MAC remains unchanged, causing
    L2 destination mismatch and 100% packet loss. Reading the actual
    MAC via gNMI is vendor-agnostic and works regardless of whether
    the platform applies OC MAC settings.
  - Increase ECMP load balance tolerance from 12% to 20%. With only
    2 egress links, hash entropy is low and per-run variance
    regularly exceeds 12%.
@smharis-arista smharis-arista requested a review from a team as a code owner May 19, 2026 03:25
@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 enhances the IPv4 GRE tunnel encapsulation test by adding support for Arista platforms and improving the robustness of the test environment. Key changes include vendor-specific CLI configuration for tunnels, more reliable MAC address discovery via gNMI, and adjusted load balancing tolerances to reduce test flakiness.

Highlights

  • Arista Platform Support: Added Arista platform exceptions and CLI-based GRE tunnel interface configuration to the IPv4 GRE encapsulation test.
  • Improved MAC Address Retrieval: Switched from hardcoded MAC attributes to reading the actual DUT port MAC via gNMI to ensure compatibility across different hardware vendors.
  • Configuration and Stability Updates: Implemented gNMI Replace for interface configurations and increased the ECMP load balance tolerance from 12% to 20% to account for hash entropy variance.
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.

@OpenConfigBot
Copy link
Copy Markdown

OpenConfigBot commented May 19, 2026

Pull Request Functional Test Report for #5485 / 57dd8c4

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Cisco 8000E status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Cisco XRd status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Juniper ncPTX status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Nokia SR Linux status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Openconfig Lemming status
TUN-1.3: Interface based IPv4 GRE Encapsulation

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Cisco 8808 status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Juniper PTX10008 status
TUN-1.3: Interface based IPv4 GRE Encapsulation
Nokia 7250 IXR-10e status
TUN-1.3: Interface based IPv4 GRE Encapsulation

Help

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 introduces Arista vendor support for the IPv4 GRE encapsulation test. Key changes include adding Arista-specific platform exceptions and deviations to the metadata, increasing traffic tolerance, and implementing Arista-specific tunnel configuration via CLI snippets. The test logic was also updated to use explicit gNMI replacements for interfaces and to retrieve MAC addresses from the device state. Review feedback suggests optimizing interface configurations by using gnmi.SetBatch for efficiency and restoring CLI configuration logging to facilitate debugging across different vendors.

…g logging

  - Replace individual gnmi.Replace calls with a single gnmi.SetBatch
    transaction for interface configuration
  - Add CLI config logging after the vendor switch for debugging
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