Improve libvirt_vm.add_nic to support ovs virtualport attribute#4337
Improve libvirt_vm.add_nic to support ovs virtualport attribute#4337YongxueHong merged 1 commit intoavocado-framework:masterfrom
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 enhances the Highlights
Changelog
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 correctly adds support for the virtualport_type=openvswitch attribute in libvirt_vm.add_nic when the network destination is an Open vSwitch bridge. The implementation is straightforward. However, there's a potential robustness issue: the call to utils_net.ovs_br_exists() may raise an exception if OVS is not installed, causing unrelated tests to fail. I've suggested adding a try...except block to handle this gracefully, ensuring that the absence of OVS doesn't lead to test failures.
|
Test pass both |
fb6ac48 to
a077a96
Compare
It should be a design flaw; when netdst is ovs, attribute virtualport_type needs to be added Signed-off-by: Lei Yang <leiyang@redhat.com>
a077a96 to
cba7287
Compare
|
All of the following test scenarios passed the test:
|
|
Hi @Yingshun Could you please help me review this patch again? Because I changed some code to implement commit mentioned fucntion. |
It should be a design flaw; when netdst is ovs, attribute virtualport_type needs to be added
ID: LIBVIRTAT-22360
Signed-off-by: Lei Yang leiyang@redhat.com