Skip to content

List All VirtualSwitch Names (possible feature request)  #242

@jeremyjbutler

Description

@jeremyjbutler

Forgive me if this is already a feature but Im new to terraform and GO, I want to get a list of all the virtual switches already configured on the host and while creating the vm create an adapter attached to each switch. I am working in an environment where the switch names, order, vlan, and number of switches are all highly variable per hypervisor. I had a look at the code for getting the virtualswitch but I see switch name seems to be required. Is there any possible way I can read into a list all the switches on the hypervisor ? Right now my plan is just to make a tfvars for every single hypervisor

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions