Skip to content

Update RT-1.12 README for dual-stack MED operations (SET, ADD, SUBTRACT, Reset) - #6325

Open
mageshkasi-byte wants to merge 1 commit into
openconfig:mainfrom
mageshkasi-byte:med_operations_readme
Open

mageshkasi-byte wants to merge 1 commit into
openconfig:mainfrom
mageshkasi-byte:med_operations_readme

Conversation

@mageshkasi-byte

Copy link
Copy Markdown
Contributor

Summary

Updates the RT-1.12 (feature/bgp/otg_tests/bgp_always_compare_med/README.md) test plan to add dual-stack (IPv4 and IPv6) coverage and full BGP MED routing-policy operations alongside global always-compare-med:

  • RT-1.12.1: Global always-compare-med: true with set-med-action: SET (100 vs 50) for IPv4 and IPv6 (preserves existing baseline intent).
  • RT-1.12.2: Global always-compare-med: false vs true negative check and toggle verification, including state/always-compare-med telemetry.
  • RT-1.12.3: MED ADD (set-med-action: ADD) on top of non-zero incoming MED (100 + 50 = 150 vs 100 + 20 = 120).
  • RT-1.12.4: MED SUBTRACT (set-med-action: SUBTRACT) with standard decrement (100 - 20 = 80 vs 100 - 60 = 40) and underflow saturation at 0 (max(0, 100 - 150) = 0).
  • RT-1.12.5: MED Reset via explicit set-med: 0 (SET) and import policy removal back to ALLOW.

Also fixes the topology description (Port 1 is iBGP, Ports 2 and 3 are eBGP), adds leafref-valid Canonical OC JSON blocks (SET, ADD, SUBTRACT), adds a Cleanup section, and updates the leaf-only OpenConfig Path and RPC Coverage list.

Validation

  • validate_readme_canonicalocspec: PASS (3 valid Canonical OCs)
  • validate_readme_ocpaths: PASS
  • addrundata: PASS (0 errors for bgp_always_compare_med)

Follow-up PR will implement the corresponding Go test automation and metadata.textproto updates.

cc @pmprado @Abdelfatah26 @dplore

@OpenConfigBot

OpenConfigBot commented Nov 24, 2026 •

Copy link
Copy Markdown

Pull Request Functional Test Report for #6325 / a6a0b2e

Virtual Devices

Device Test Status Test Documentation Job Raw Log
Arista cEOS status
RT-1.12: success
RT-1.12: BGP always compare MED
053825a7 Log
Cisco 8000E status
RT-1.12: failure
RT-1.12: BGP always compare MED
86068f43 Log
Cisco XRd status
RT-1.12: failure
RT-1.12: BGP always compare MED
8a1eb0c0 Log
Juniper ncPTX status
RT-1.12: success
RT-1.12: BGP always compare MED
e6a3b9bd Log
Nokia SR Linux status
RT-1.12: success
RT-1.12: BGP always compare MED
f129a582 Log
Openconfig Lemming status
RT-1.12: failure
RT-1.12: BGP always compare MED
eda9b54f Log

Hardware Devices

Device Test Status Test Documentation Raw Log
Arista status
RT-1.12: pending authorization
RT-1.12: BGP always compare MED
Cisco status
RT-1.12: pending authorization
RT-1.12: BGP always compare MED
Juniper status
RT-1.12: pending authorization
RT-1.12: BGP always compare MED
Nokia status
RT-1.12: pending authorization
RT-1.12: BGP always compare MED

Help

@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 significantly enhances the RT-1.12 test plan for BGP 'always-compare-med' functionality. It expands the scope to include dual-stack support and provides detailed validation steps for various MED routing-policy operations. The update ensures robust testing of MED arithmetic and reset behaviors, alongside improved documentation of the test environment and OpenConfig path coverage.

Highlights

  • Dual-Stack Coverage: Updated the RT-1.12 test plan to include both IPv4 and IPv6 unicast traffic validation for BGP MED operations.
  • Expanded MED Operations: Added comprehensive test procedures for SET, ADD, SUBTRACT, and Reset MED actions, including verification of underflow saturation at 0.
  • Topology and Configuration: Corrected the topology description to accurately reflect iBGP and eBGP port assignments and added Canonical OpenConfig JSON blocks for all test cases.
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. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request updates the test plan README for the BGP always compare MED test (RT-1.12). It expands the test coverage details to include dual-stack IPv4 and IPv6 unicast traffic, and defines comprehensive procedures for validating routing-policy MED operations such as SET, ADD, SUBTRACT (including underflow saturation at 0), and MED reset. It also specifies the use of the atedut_4.testbed topology and updates the OpenConfig path and RPC coverage. There are no review comments, and the changes align with the repository style guides. I have no feedback to provide.

This branch has not been deployed

No deployments
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.

2 participants