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:54 UTC
git commit: refs/heads/master - IPv6: Enable specifying ipv6 address
in DeployVMCmd
Updated Branches:
refs/heads/master 8761a1d0d -> f87759dab
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/f87759da
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f87759da
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f87759da
Branch: refs/heads/master
Commit: f87759dabe04a21abc97ab45ab34921850e52771
Parents: 8761a1d
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:25:48 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/f87759da/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());