RT-1.25: Re-organizing the code to configure and bring up the interface first before assigning it to a network-instance#5077
RT-1.25: Re-organizing the code to configure and bring up the interface first before assigning it to a network-instance#5077pshivash wants to merge 6 commits intoopenconfig:mainfrom
Conversation
Summary of ChangesHello @pshivash, 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 network interface configuration process within static route tests. The primary goal is to establish a more robust and correct sequence for setting up interfaces on the Device Under Test (DUT), ensuring that interfaces are properly enabled before being associated with a VRF. Additionally, it introduces necessary vendor-specific exceptions for Nokia platforms and addresses a missing subinterface configuration detail, leading to more reliable and compatible test execution. 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
|
Pull Request Functional Test Report for #5077 / 9188314Virtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request correctly refactors the DUT configuration logic to enable interfaces before assigning them to a network instance, a necessary change for some vendor platforms. It also adds the missing subinterface index when associating an interface with a VRF and includes new platform exceptions for Nokia. The changes are logical and improve test compatibility. I have added one suggestion to refactor duplicated code into a loop, which improves maintainability and aligns with the repository's style guide.
Pull Request Test Coverage Report for Build 21899994891Details
💛 - Coveralls |
|
@rohit-rp Please take a look |
Re-organizing the code to configure and bring up the interface first before assigning it to a network-instance on the DUT.
Also, adding the exceptions for Vendor Nokia as expected by the script.
Also, adding the missing subinterface configuration while assigning the interface to a network-instance.
"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."