Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 231085

Re: Look up portgroup (VC:DistributedVirtualPortgroup)

$
0
0

So what I need is this:

 

  1. I pass in an IP address (works)
  2. I run it through my switch statement (works)
  3. My output is a VC:DistributedVirtualPortgroup object that I can pass to my next element in my workflow (Connect virtual machine NIC number to distributed virtual port ) (broken)
  4. When I execute Connect virtual machine NIC number to distributed virtual port , it already has the port-group I matched from step 3 (broken)

 

Now, I've done some more digging and found this:

matching on a portgroup

Which lists all my dVS port-groups. Now how do I return the one I want so that I can populate the (input/attribute) needed for step 3 above?

 

if (dvPorgroupName == "my switch statement") {
return "some VC Object" //this is what I need to figure out
}

 

Thanks for the tips on breakpoints/debugging, I will give it a shot.

 

Thanks.


Viewing all articles
Browse latest Browse all 231085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>