Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

config.defaultPortConfig.vlan.vlanId returns 0

$
0
0

[Inputs]

DVSwitch ofType VC:VmwareDistributedVirtualSwitch

 

The code below always returns 0 for vlanId. 

 

Any thoughts on why?
Is there a different way to retrieve the vlanId for a DVPortGroup?

 

 

 

for(i in DVSwitch.portgroup)
{      System.debug(DVSwitch.portgroup[i].name);      if(DVSwitch.portgroup[i].config.defaultPortConfig.vlan instanceof VcVmwareDistributedVirtualSwitchVlanIdSpec){            var vlanId = DVSwitch.portgroup[i].config.defaultPortConfig.vlan.vlanId;            System.debug(vlanId);     }
}

Viewing all articles
Browse latest Browse all 6251

Trending Articles



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