mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-01 20:50:23 -07:00
VMware: Refactor vmware_vmkernel module (#35531)
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
367258507a
commit
02b28d4584
3 changed files with 460 additions and 110 deletions
|
@ -166,19 +166,6 @@ class PyVmomiHelper(PyVmomi):
|
|||
self.remove_portgroup()
|
||||
|
||||
# Get
|
||||
def get_all_port_groups_by_host(self, host_system):
|
||||
"""
|
||||
Function to get all Port Group by host
|
||||
Args:
|
||||
host_system: Name of Host System
|
||||
|
||||
Returns: List of Port Group Spec
|
||||
"""
|
||||
pgs_list = []
|
||||
for pg in host_system.config.network.portgroup:
|
||||
pgs_list.append(pg)
|
||||
return pgs_list
|
||||
|
||||
def get_port_group_by_name(self, host_system, portgroup_name, vswitch_name):
|
||||
"""
|
||||
Function to get specific port group by given name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue