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

remove vmnic from DVS

$
0
0

I'm trying to remove a vmnic from a dvUplink, so that I can add it to a VSS. I tried the below code and received an error:

Cannot convert com.vmware.vim.vi4.DVPortConfigSpec@ea858ec6 to com.vmware.vim.vi4.DVPortConfigSpec[] (Workflow:#VMK Master workflow / Delete vmnic DVS (item5)#5)

 

var DVPortConfigSpec = new VcDVPortConfigSpec;

DVPortConfigSpec.name = dvUplink;

DVPortConfigSpec.key = portKey;

DVPortConfigSpec.operation = "remove";

 

 

var task=DVS.reconfigureDVPort_Task(DVPortConfigSpec);


Viewing all articles
Browse latest Browse all 6251

Trending Articles