CS-16370 , VCP, support delete guest network for vmware

This commit is contained in:
Anthony Xu 2012-09-21 10:12:20 -07:00
parent ba8b418542
commit 5d301f2af5

View File

@ -936,7 +936,7 @@ public class VmwareResource implements StoragePoolResource, ServerResource, Vmwa
int ethDeviceNum = findRouterEthDeviceIndex(domrName, routerIp, nic.getMac());
s_logger.info("find interface index. routerIp: " + routerIp + ", mac: " + nic.getMac() + ", index: " + ethDeviceNum);
String args = "-C ";
String args =(cmd.isAdd()?"-C":"-D");
String dev = "eth" + ethDeviceNum;
args += " -d " + dev;
args += " -i " + domrGIP;