You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ya...@apache.org on 2013/02/22 23:25:32 UTC

git commit: refs/heads/4.1 - IPv6: Enable specifying ipv6 address in DeployVMCmd

Updated Branches:
  refs/heads/4.1 f0fb2e0f7 -> 22cdfe3da


IPv6: Enable specifying ipv6 address in DeployVMCmd


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

Branch: refs/heads/4.1
Commit: 22cdfe3da19d2c1008020c65762aa697057b8660
Parents: f0fb2e0
Author: Sheng Yang <sh...@citrix.com>
Authored: Fri Feb 22 14:23:54 2013 -0800
Committer: Sheng Yang <sh...@citrix.com>
Committed: Fri Feb 22 14:23:54 2013 -0800

----------------------------------------------------------------------
 .../api/command/user/vm/DeployVMCmd.java           |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/22cdfe3d/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
----------------------------------------------------------------------
diff --git a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
index 56cb460..0ac6476 100755
--- a/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
+++ b/api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java
@@ -306,9 +306,6 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
                 if (requestedIpv6 != null) {
                 	requestedIpv6 = requestedIpv6.toLowerCase();
                 }
-                if (requestedIpv6 != null) {
-                	throw new InvalidParameterValueException("Cannot support specified IPv6 address!");
-                }
                 IpAddresses addrs = new IpAddresses(requestedIp, requestedIpv6);
                 ipToNetworkMap.put(networkId, addrs);
             }
@@ -407,10 +404,6 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
     @Override
     public void create() throws ResourceAllocationException{
         try {
-        	if (getIp6Address() != null) {
-        		throw new InvalidParameterValueException("Cannot support specified IPv6 address!");
-        	}
-        	
             //Verify that all objects exist before passing them to the service
             Account owner = _accountService.getActiveAccountById(getEntityOwnerId());