Skip to content

Conversation

@mukherso
Copy link

@mukherso mukherso commented Dec 15, 2025

Files changed

  • (M) feature/bgp/otg_tests/bgp_tcp_mss_path_mtu/metadata.textproto

Change Scope

Updated the featureprofiles BGP TCP MSS path MTU test behavior to account for the configured TCP MSS value being reported in transport/state, rather than the negotiated MSS value.

The tcp-mss leaf is defined only under the transport configuration in the OpenConfig public model, and the same value is reflected in the corresponding state container for both peer-groups and neighbors. As a result, the effective configured MSS value is being reported in transport/state, not the negotiated MSS derived from TCP session establishment :

container transport {  
  description  
    "Transport session parameters for the BGP neighbor";  
  container config {  
    description  
      "Configuration parameters relating to the transport  
      session(s) used for the BGP neighbor";  
    uses bgp-common-neighbor-group-transport-config;  
  }  
  container state {  
    config false;  
    description  
      "State information relating to the transport session(s)  
      used for the BGP neighbor";  
    uses bgp-common-neighbor-group-transport-config;  
    uses bgp-neighbor-transport-state;  
  }  
}

However, the following tests:

https://github.com/openconfig/featureprofiles/blob/main/feature/bgp/otg_tests/bgp_tcp_mss_path_mtu/bgp_tcp_mss_path_mtu_test.go#L382

https://github.com/openconfig/featureprofiles/blob/main/feature/bgp/otg_tests/bgp_tcp_mss_path_mtu/bgp_tcp_mss_path_mtu_test.go#L482

currently expects the negotiated MSS value when querying: /bgp/neighbors/neighbor/transport/tcp-mss/state

To align the test with OpenConfig implementation, the Arista-specific deviation skip_tcp_negotiated_mss_check is enabled. This allows the test suite to pass while preserving correct validation of TCP MSS configuration semantics.

@mukherso mukherso requested a review from a team as a code owner December 15, 2025 21:08
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @mukherso, 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 an inconsistency in how the BGP TCP MSS path MTU test interprets the tcp-mss value reported in transport/state. The OpenConfig model specifies that transport/state reflects the configured MSS, whereas the existing test expected a negotiated MSS. To resolve this, an Arista-specific flag, skip_tcp_negotiated_mss_check, has been enabled. This modification ensures the test suite passes correctly without introducing any changes to the OpenConfig model or device operational behavior.

Highlights

  • Test Behavior Alignment: The BGP TCP MSS path MTU test has been updated to correctly account for the configured TCP MSS value being reported in transport/state, rather than the negotiated MSS value, aligning with the OpenConfig model's implementation.
  • Arista-Specific Deviation: To facilitate the test's passing while preserving correct validation of TCP MSS configuration semantics, the Arista-specific deviation skip_tcp_negotiated_mss_check has been enabled.
  • Scope and Compatibility: This change is backward compatible and exclusively impacts test behavior; it does not alter the OpenConfig model or the behavior of network devices.
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 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 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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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

Pull Request Functional Test Report for #4934 / 5c71a82

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
RT-1.21: BGP TCP MSS and PMTUD
Cisco 8000E status
RT-1.21: BGP TCP MSS and PMTUD
Cisco XRd status
RT-1.21: BGP TCP MSS and PMTUD
Juniper ncPTX status
RT-1.21: BGP TCP MSS and PMTUD
Nokia SR Linux status
RT-1.21: BGP TCP MSS and PMTUD
Openconfig Lemming status
RT-1.21: BGP TCP MSS and PMTUD

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
RT-1.21: BGP TCP MSS and PMTUD
Cisco 8808 status
RT-1.21: BGP TCP MSS and PMTUD
Juniper PTX10008 status
RT-1.21: BGP TCP MSS and PMTUD
Nokia 7250 IXR-10e status
RT-1.21: BGP TCP MSS and PMTUD

Help

Copy link
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 enables the skip_tcp_negotiated_mss_check deviation for the BGP TCP MSS path MTU test. The change is well-justified in the description, which correctly points out that the test was expecting a negotiated MSS value from a telemetry path that, according to the OpenConfig model structure, is intended to report the configured value. By enabling this deviation, the test behavior is aligned with the device's implementation, which appears to be compliant with the OpenConfig model. The change is minimal, targeted, and correct. I have no further comments.

default_network_instance: "default"
isis_interface_afi_unsupported: true
fr_breakout_fix: true
skip_tcp_negotiated_mss_check: true
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add a proper issue tracker ID in the deviations file.

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.

3 participants