Add SetOrigin validation to staticToBGP test#5478
Conversation
Pull Request Functional Test Report for #5478 / bd50b8aVirtual Devices
Hardware Devices
|
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 expands the static-to-BGP redistribution test suite by adding validation for BGP route origin attributes. It introduces helper functions to configure routing policies with specific origin types and verifies that these attributes are correctly propagated and received by the ATE, ensuring compliance with BGP policy configurations for both IPv4 and IPv6. Highlights
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 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 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
|
There was a problem hiding this comment.
Code Review
This pull request introduces new test cases (RT-1.27.23 to RT-1.27.28) to verify BGP route origin redistribution for IGP, EGP, and INCOMPLETE attributes across IPv4 and IPv6. The code changes include new configuration and validation helpers, as well as updated documentation. Feedback from the review highlights critical issues: the downgrade of traffic validation from fatal errors to log messages must be reverted to ensure test integrity, potential nil pointer panics in error handling paths need to be addressed, and BGP convergence timeouts should be increased to 30 seconds to prevent flakiness.
…oute_bgp_redistribution_test/static_route_bgp_redistribution_test.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…oute_bgp_redistribution_test/static_route_bgp_redistribution_test.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…oute_bgp_redistribution_test/static_route_bgp_redistribution_test.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Add SetOrigin validation to staticToBGP test