cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthon...@apache.org
Subject [3/7] git commit: CS-16370 , VCP, support delete guest network for vmware
Date Thu, 27 Sep 2012 00:42:43 GMT
CS-16370 , VCP,  support delete guest network for vmware


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/5d301f2a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/5d301f2a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/5d301f2a

Branch: refs/heads/master
Commit: 5d301f2af50d24df5f6b3aea35db3894777394b6
Parents: ba8b418
Author: Anthony Xu <anthony@cloud.com>
Authored: Fri Sep 21 10:12:20 2012 -0700
Committer: Anthony Xu <anthony@cloud.com>
Committed: Wed Sep 26 17:42:42 2012 -0700

----------------------------------------------------------------------
 .../hypervisor/vmware/resource/VmwareResource.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/5d301f2a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
index 1fa14fa..8993827 100755
--- a/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
+++ b/plugins/hypervisors/vmware/src/com/cloud/hypervisor/vmware/resource/VmwareResource.java
@@ -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;


Mime
View raw message