modifications to RT-10.2: Non-default Route Generation based on 192.168.2.2/32 Presence in ISIS#5078
modifications to RT-10.2: Non-default Route Generation based on 192.168.2.2/32 Presence in ISIS#5078divyarema wants to merge 2 commits intoopenconfig:mainfrom
Conversation
divyarema
commented
Feb 11, 2026
- Added deviations isis_level_enabled and interface_ref_interface_id_format
- Added agreggate route configs.
Summary of ChangesHello @divyarema, 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 introduces modifications to the ISIS configuration and dynamic route generation logic. It incorporates platform-specific deviations for Juniper devices and adds functionality for configuring aggregate routes. The changes enhance the flexibility and control over route advertisement within the ISIS protocol, particularly in scenarios requiring non-default route generation. Highlights
Activity
Using Gemini Code AssistThe 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
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 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
|
There was a problem hiding this comment.
Code Review
This pull request modifies the generate_route test to support route generation on Juniper devices by adding new deviations (isis_level_enabled, interface_ref_interface_id_format) and implementing the corresponding logic. The changes also refactor the GenerateDynamicRouteWithISIS helper to configure aggregate routes using OpenConfig for the default case.
My review focuses on improving the new implementation in internal/cfgplugins/isis.go. I've pointed out some redundant code that can be simplified for better readability and maintainability. I also noted that a function signature deviates from the repository's cfgplugins guidelines by including an unused batch parameter and performing immediate configuration, and I've suggested a correction, while also considering the rule about maintaining consistency.
Pull Request Test Coverage Report for Build 21908500386Details
💛 - Coveralls |