Fixing BGP LLGR test for Nokia#5189
Conversation
Summary of ChangesHello, 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 stability and compatibility of BGP Long-Lived Graceful Restart (LLGR) tests, specifically for Nokia network devices. By introducing new deviations and refining configuration logic, it ensures that tests correctly account for Nokia's unique behaviors and limitations regarding BGP graceful restart, preventing false negatives and improving the overall reliability of the testing suite. Highlights
Changelog
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 introduces fixes for the BGP Long-Lived Graceful Restart (LLGR) test, primarily for Nokia devices. The changes include adding new deviations to handle platform-specific behavior, such as unsupported BGP configurations during graceful restart and differences in graceful restart mode reporting. Additionally, the PR introduces retry mechanisms for gNMI operations to enhance test stability and updates interface configuration logic. Overall, the changes are well-aligned with the goal of improving test robustness for Nokia devices. I've included a few suggestions to fix minor bugs in logging.
feature/bgp/ate_tests/bgp_long_lived_graceful_restart/bgp_long_lived_graceful_restart_test.go
Outdated
Show resolved
Hide resolved
feature/bgp/ate_tests/bgp_long_lived_graceful_restart/bgp_long_lived_graceful_restart_test.go
Outdated
Show resolved
Hide resolved
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces fixes for BGP LLGR tests on Nokia devices, primarily by adding new deviations and making gNMI operations more resilient with retry logic. The changes are well-aligned with the goal of improving test stability. I've identified a couple of areas for improvement: the retry helper functions have significant code duplication that could be refactored, and there's a section with a redundant and inefficient check that could be simplified. Addressing these points would enhance the code's maintainability and performance, while ensuring retry intervals are sufficient for test stability.
BGP Long-Lived Graceful Restart (LLGR) test failures on Nokia devices by addressing multiple issues including configuration timing, graceful restart mode mismatches, and unsupported operations during restart. Skipping the "Configure new BGP Peer" section during graceful restart (due to the new deviation bgp_config_during_graceful_restart_unsupported)
for Nokia, subinterface 0 is not created but attempted to be bound. This PR fixes to bind actual subinterfaces
Nokia regarding AFI/SAFI GR content and need to relax GR Mode check was missing, so added deviation "bgp_graceful_restart_under_afi_safi_unsupported", "missing_value_for_defaults" along with above deviations.
The test expects HELPER_ONLY but Nokia reports BILATERAL. I will update the test to accept both, as BILATERAL is a valid mode for a device supporting full GR.
Invalid Path: The path afi-safi/.../graceful-restart/enabled is not supported. The deviation bgp_graceful_restart_under_afi_safi_unsupported is used for Nokia to skip this check in the test.