RT-7.6 linkbandwidth_aggregation_test.go#4805
RT-7.6 linkbandwidth_aggregation_test.go#4805cprabha wants to merge 6 commits intoopenconfig:mainfrom
Conversation
Pull Request Functional Test Report for #4805 / 7be6c3dVirtual Devices
Hardware Devices
|
Summary of ChangesHello @cprabha, 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 refactors the 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 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 updates the link bandwidth aggregation test to use the DUT's BGP RIB for validation, which is a good improvement over relying on ATE telemetry. It also correctly enables send-community extended and sets default import/export policies to accept routes for eBGP peers. My review identifies a critical issue in the new validation logic where the actual bandwidth value is not being checked, and a high-severity issue where BGP configuration for sending extended communities is missing for IPv6. I've also included a medium-severity suggestion to improve code maintainability by using constants instead of magic numbers.
...inkbandwidth_community/otg_tests/linkbandwidth_aggregation/linkbandwidth_aggregation_test.go
Show resolved
Hide resolved
...inkbandwidth_community/otg_tests/linkbandwidth_aggregation/linkbandwidth_aggregation_test.go
Show resolved
Hide resolved
...inkbandwidth_community/otg_tests/linkbandwidth_aggregation/linkbandwidth_aggregation_test.go
Show resolved
Hide resolved
...inkbandwidth_community/otg_tests/linkbandwidth_aggregation/linkbandwidth_aggregation_test.go
Show resolved
Hide resolved
...inkbandwidth_community/otg_tests/linkbandwidth_aggregation/linkbandwidth_aggregation_test.go
Show resolved
Hide resolved
Pull Request Test Coverage Report for Build 21089017148Details
💛 - Coveralls |
Hi,
1.) For extended community bandwidth attribute we need to use rib commands, I have updated validate function to use rib commands.
Sendcommunity extended has to be enabled to send link bandwidth community attribute to bgp peer.
Default import/export for EBGP peers is reject, we need to enable default import/export to accept , otherwise routes will not be imported or exported.
We support auto sense feature hence removed deviation.
Thanks,
Prabha