Hi Expert,
I am working on a port mirror (port SPAN) workfow on VDS.
The port mirror creation workflow work fine.
But when delete the port mirror. It shows "can not complete operation due to concurrent modification by another operation". Pls refer to attached file.
environment :
vsphere 5.5 update 2, vco 5.5.2
The workflow script can be seen as following:
// ------- CreateSession -------
var spec = new VcVMwareDVSConfigSpec();
spec.configVersion = DVS.config.configVersion;
spec.vspanConfigSpec=[new VcVMwareDVSVspanConfigSpec()];
spec.vspanConfigSpec[0].vspanSession=new VcVMwareVspanSession();
spec.vspanConfigSpec[0].vspanSession.name=sessionName;
//Span settings
spec.vspanConfigSpec[0].vspanSession.stripOriginalVlan=false;
spec.vspanConfigSpec[0].vspanSession.enabled=true;
spec.vspanConfigSpec[0].vspanSession.normalTrafficAllowed=true;
//Configure destination Port
spec.vspanConfigSpec[0].vspanSession.destinationPort= new VcVMwareVspanPort();
spec.vspanConfigSpec[0].vspanSession.destinationPort.portKey=DPort;
//Configure source Port
spec.vspanConfigSpec[0].vspanSession.sourcePortTransmitted =new VcVMwareVspanPort();
spec.vspanConfigSpec[0].vspanSession.sourcePortTransmitted.portKey=SPort;
spec.vspanConfigSpec[0].vspanSession.sourcePortReceived =new VcVMwareVspanPort();
spec.vspanConfigSpec[0].vspanSession.sourcePortReceived.portKey=SPort;
spec.vspanConfigSpec[0].operation="add";
DVS.reconfigureDvs_Task(spec);
// ------- CreateSession -------
// ------- Delete Session -------
spec.vspanConfigSpec[0].operation="remove"; //remove the session
DVS.reconfigureDvs_Task(spec);
// ------- Delete Session ------- after run the delete script, we get error message as attached error.pgn.
thanks,
David