Skip to content
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

List All VirtualSwitch Names (possible feature request) #242

Open
jeremyjbutler opened this issue Jan 22, 2024 · 0 comments
Open

List All VirtualSwitch Names (possible feature request) #242

jeremyjbutler opened this issue Jan 22, 2024 · 0 comments

Comments

@jeremyjbutler
Copy link

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

@jeremyjbutler jeremyjbutler changed the title possible feature request List All VirtualSwitch Names (possible feature request) Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants