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 <[email protected]> Authored: Fri Feb 22 14:23:54 2013 -0800 Committer: Sheng Yang <[email protected]> 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());
