Skip to content

Update README.md with right network instance for gRIBI AFT entries#5200

Merged
singhh07 merged 2 commits intomainfrom
singhh07-patch-1
Mar 13, 2026
Merged

Update README.md with right network instance for gRIBI AFT entries#5200
singhh07 merged 2 commits intomainfrom
singhh07-patch-1

Conversation

@singhh07
Copy link
Contributor

@singhh07 singhh07 commented Mar 6, 2026

This PR includes the following test updates:

  1. Explicitly configures the eBGP session with the ATE within the TEST_VRF in the first step.
  2. Changes the network instance to default for both next-hop-group and next-hop attributes in gRIBI entries.
  3. Adds network-instance information to the gRIBI IPv4 entry for the next-hop-group.

This PR includes the following test updates:

1. Explicitly configures the eBGP session with the ATE within the TEST_VRF in the first step.
2. Changes the network instance to default for both next-hop-group and next-hop attributes in gRIBI entries.
3. Adds network-instance information to the gRIBI IPv4 entry for the next-hop-group.
@singhh07 singhh07 requested review from dplore and rszarecki March 6, 2026 10:38
@singhh07 singhh07 requested a review from a team as a code owner March 6, 2026 10:38
@gemini-code-assist
Copy link
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 refines the documentation for gRIBI to BGP redistribution tests by correcting network instance references within the example configurations. The changes ensure that the eBGP session setup and gRIBI AFT entries accurately reflect the intended network instance usage, improving the clarity and correctness of the test instructions.

Highlights

  • eBGP Configuration Clarification: The documentation for Step 1 has been updated to explicitly state that the eBGP session with the ATE is configured within the 'TEST_VRF' network instance.
  • gRIBI Next-Hop and Next-Hop-Group Network Instance Correction: The network instance for gRIBI next-hop and next-hop-group operations in the example configurations has been changed from 'TEST_VRF' to 'DEFAULT'.
  • gRIBI IPv4 Entry Network Instance Addition: Network instance information has been added to the gRIBI IPv4 entry for the next-hop-group, specifying 'DEFAULT' as the network instance for the next-hop-group.
Changelog
  • feature/gribi/otg_tests/gribi_to_bgp_redistribution/README.md
    • Updated the description of eBGP configuration in Step 1 to specify configuration within 'TEST_VRF'.
    • Modified gRIBI ADD operations for next-hop and next-hop-group to use 'DEFAULT' network instance.
    • Added 'next_hop_group_network_instance' with value 'DEFAULT' to gRIBI IPv4 ADD operations.
    • Modified gRIBI DELETE operations for next-hop and next-hop-group to use 'DEFAULT' network instance.
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

OpenConfigBot commented Mar 6, 2026

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 updates the README.md to correctly document the network instances used for gRIBI AFT entries. The changes align with the description and seem correct. My review identifies a formatting issue in the code blocks used to display gRIBI operations. There's an inconsistency in the language identifiers used (json vs. yaml), and the content within these blocks is not valid for the specified language. I've added a single comment to address this systemic issue, recommending a consistent and valid format for all related code blocks to improve the documentation's clarity and correctness.

Note: Security Review has been skipped due to the limited scope of the PR.

Comment on lines +239 to +241
'operation: { op: ADD network_instance: "DEFAULT" next_hop: { index: 1001 next_hop { ip_address: { value: "192.0.2.2" } } } }'
'operation: { op: ADD network_instance: "DEFAULT" next_hop_group: { id: 2001 next_hop_group { next_hop { index: 1001 weight: { value: 1 } } } } }'
'operation: { op: ADD network_instance: "TEST_VRF" ipv4: { prefix: "198.51.100.1/32" ipv4_entry { next_hop_group: { value: 2001 } next_hop_group_network_instance { value: "DEFAULT" } } } }'
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The code blocks in this file that show gRIBI operations have inconsistent language identifiers (json vs yaml) and invalid content for the specified language. For example, this block is marked as json but is not valid JSON. To improve correctness and consistency, I recommend using a single language identifier for all these blocks (e.g., yaml) and formatting the content as a valid sequence (e.g., prefixing each line with - ). This issue is present in all similar code blocks throughout the file (e.g., lines 249, 267, 358, 373, 467).

@dplore dplore assigned gggsmith and unassigned dplore Mar 11, 2026
@dplore
Copy link
Member

dplore commented Mar 11, 2026

@gggsmith to review that the intent is correct. LGTM from a test structure point of view.

@gggsmith gggsmith assigned rszarecki and unassigned gggsmith Mar 12, 2026
@gggsmith gggsmith assigned dplore and unassigned rszarecki Mar 13, 2026
@gggsmith
Copy link
Contributor

@dplore - LGTM from Core, need a stamp from approvers - thanks in advance!

@dplore
Copy link
Member

dplore commented Mar 13, 2026

LGTM @singhh07 you can merge when you are ready

@singhh07 singhh07 merged commit ad5c50d into main Mar 13, 2026
18 checks passed
@singhh07 singhh07 deleted the singhh07-patch-1 branch March 13, 2026 19:14
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.

5 participants