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

This commit is contained in:
Anthony Xu 2012-09-21 10:12:20 -07:00 committed by Edison Su
parent d59b5f88b5
commit 889a34c9ee
1 changed files with 1 additions and 1 deletions

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;