VLAN using ESXi standard port groups
See original GitHub issueHi,
Great script, does everything perfectly except one thing, using ESXi standard port groups is not an option. Basically the VLANs and prefix assignments are setup in ESXi as standard port groups instead of using DistributedirtualPortGroups, hence the only VLAN that is create is the ESXi Management Network (ID: 10)
. I have tried looking at the vSphere API in a way to modify the script to use standard port groups from ESXi but cannot seem to find a way. I’m new to the API so not too sure how to go about it.
Also because of not finding the prefixes in the VLANs, the VMs are not assigned to the correct prefixes as there are none imported. I know this can be done manually but with a large number of VMs it isnot feasibile to manually do this.
Is this a possible feature that could be added? I would do it myself if I knew how to query the API properly for the port groups & VLANs.
If you need more details please let me know.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (6 by maintainers)
Let’s see if I can match the VM MAC addresses to the host port group.
Don’t worry about that one, all sorted.