VMware Cloud Community
AlexAllenExpedi
Enthusiast
Enthusiast
Jump to solution

config.defaultPortConfig.vlan.vlanId returns 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);

     }

}

Reply
0 Kudos
1 Solution

Accepted Solutions
Burke-
VMware Employee
VMware Employee
Jump to solution

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

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter

View solution in original post

Reply
0 Kudos
3 Replies
Burke-
VMware Employee
VMware Employee
Jump to solution

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

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
Reply
0 Kudos
AlexAllenExpedi
Enthusiast
Enthusiast
Jump to solution

This resolved the issue.

Am I am able to renable Inventory Service with the new Technical Preview release of the plugin?

Reply
0 Kudos
cdecanini_
VMware Employee
VMware Employee
Jump to solution

You should not since all new versions of the plug-in will have the inventory service disabled.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
Reply
0 Kudos