New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VMware: add new module vmware_guest_network #52075
Conversation
@Tomorrow9, just so you are aware we have a dedicated Working Group for vmware. |
The test
The test
|
@MikeKlebolt @Akasurde @bedecarroll @CastawayEGR @chrrrles @dav1x @garbled1 @GyorgyPeter @imjoseangel @jjahns @kamsz @karstenjakobsen @kryptsi @lrivallain @nafpliot-ibm @nerzhul @oboukili @rhoop @ritzk @rmin @stravassac @tchernomax @warthog9 @woshihaoren As a maintainer of a module in the same namespace this new module has been submitted to, your vote counts for shipits. Please review this module and add |
I also hit this issue #50656 in this module. On vSphere 6.5, it works well, on vSphere 6.7, there is error "VM network does not exist" and "Hot plug failed". I'll take a look at that. Thanks. |
Sorry, my mistake, configured the wrong "datacenter" parameter. :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edited… see next Review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested this new module. Here is my feedback on what I tested, what works, what doesn't.
Adding NICs on an existing VM
networks:
- name: "vlan{{ vlan.id }}"
mac: "{{ 'aa:bb:cc:dd:%02d:%02d' | format((vlan.id |int), (host.id |int)) }}"
state: new
It works!
That really eases what was theoretically possible to do with vmware_guest
module but to hard in practice. So that's a huge improvement for me.
Removing NICs on an existing VM
networks:
- name: "vlan{{ vlan.id }}"
mac: "{{ 'aa:bb:cc:dd:%02d:%02d' | format((vlan.id |int), (host.id |int)) }}"
state: new
Well here I have 2 issues:
- C(label) or C(device_type) is required to reconfigure or remove an existing network adapter.
- 'If there are multiple network adapters with the same C(device_type), you should set C(label),
or will use the first matched network adapter.'
- In our use case, we don't work with the
label
but with themac
. I assume that it would be possible to delete or edit a NIC identified by its mac address. Am I wrong? - It sounds strange to me to be able to delete a NIC just based on its
device_type
. I can imagine use case where you have to change something on all NICs of a defined type, … but not on just the first one found.
@xenlo thanks for your reviewing and feedback. |
Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
Co-Authored-By: Abhijeet Kasurde <akasurde@redhat.com>
The test
|
@Tomorrow9 Could you please merge Tomorrow9#2 which addresses my review comments ? Thanks. |
@Tomorrow9 this PR contains the following merge commits: Please rebase your branch to remove these commits. |
a2b1771
to
13637cf
Compare
The test
The test
|
* Added is_mac API Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
1ac77d3
to
e3564ae
Compare
SUMMARY
Fixes #51066
ISSUE TYPE
COMPONENT NAME
vmware_guest_network
ADDITIONAL INFORMATION
This module is used to add, reconfigure, remove network adapters for virtual machine.