[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);
}
}
This issue was known and should be resolved in new version of vCO.. The fix is to disable the use of the Inventory Service by vCO:
See this post for details: Unable to get capacity or free space value with vCO vCenter plugin 5.5.1
This issue was known and should be resolved in new version of vCO.. The fix is to disable the use of the Inventory Service by vCO:
See this post for details: Unable to get capacity or free space value with vCO vCenter plugin 5.5.1
This resolved the issue.
Am I am able to renable Inventory Service with the new Technical Preview release of the plugin?
You should not since all new versions of the plug-in will have the inventory service disabled.